gopidesupavan commented on code in PR #48747:
URL: https://github.com/apache/airflow/pull/48747#discussion_r2027500110
##########
providers/standard/src/airflow/providers/standard/operators/trigger_dagrun.py:
##########
@@ -304,8 +303,42 @@ def _trigger_dag_af_2(self, context, run_id,
parsed_logical_date):
self.log.info("%s finished with allowed state %s",
self.trigger_dag_id, state)
return
+ def execute_complete(self, context: Context, event: tuple[str, dict[str,
Any]]):
+ if AIRFLOW_V_3_0_PLUS:
+ ti = context["ti"]
+ run_ids = event[1]["run_ids"]
+
+ failed_run_id_conditions = []
+
+ for run_id in run_ids:
+ state = ti.get_dagrun_state(
+ dag_id=self.trigger_dag_id,
+ run_id=run_id,
+ )
Review Comment:
At present in trigger we are just getting count, so to get each state for
runId in triger i can send something like this in the event back to
execute_complete {"run_id1": "state", "run_id2": "state"} ?
--
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]