arnoldmr01 commented on code in PR #62259:
URL: https://github.com/apache/airflow/pull/62259#discussion_r2895318751


##########
providers/standard/src/airflow/providers/standard/operators/trigger_dagrun.py:
##########
@@ -291,16 +316,23 @@ def _trigger_dag_af_3(self, context, run_id, 
parsed_logical_date):
             deferrable=self.deferrable,
         )
 
-        if self.note and "note" in 
inspect.signature(DagRunTriggerException.__init__).parameters:
+        parameters = 
inspect.signature(DagRunTriggerException.__init__).parameters
+        if self.note and "note" in parameters:
             kwargs_accepted["note"] = self.note
 
+        if parsed_run_after and "run_after" in parameters:
+            kwargs_accepted["run_after"] = parsed_run_after
+
         raise DagRunTriggerException(**kwargs_accepted)
 
     def _trigger_dag_af_2(self, context, run_id, parsed_logical_date):
         try:
             if self.note:
                 self.log.warning("Parameter 'note' is not supported in Airflow 
2.x and will be ignored.")
 
+            if self.run_after is not NOTSET:
+                self.log.warning("Parameter 'run_after' is not supported in 
Airflow 2.x and will be ignored.")

Review Comment:
   Thanks for your advices, I will take it and modify it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to