kacpermuda commented on code in PR #58497:
URL: https://github.com/apache/airflow/pull/58497#discussion_r2545641502
##########
providers/standard/src/airflow/providers/standard/triggers/external_task.py:
##########
@@ -226,23 +226,27 @@ async def run(self) -> typing.AsyncIterator[TriggerEvent]:
elif self.execution_dates:
runs_ids_or_dates = len(self.execution_dates)
+ cls_path, data = self.serialize()
+
if AIRFLOW_V_3_0_PLUS:
- data = await
self.validate_count_dags_af_3(runs_ids_or_dates_len=runs_ids_or_dates)
- yield TriggerEvent(data)
+ data.update(
+ await self.validate_count_dags_af_3(data=data,
runs_ids_or_dates_len=runs_ids_or_dates)
+ )
Review Comment:
Yo're right, I did not check correctly what `validate_count_dags_af_3`
returns. Did not expect run_id: run_state dict being added to data. Adjusted
code now.
--
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]