hussein-awala commented on code in PR #29224:
URL: https://github.com/apache/airflow/pull/29224#discussion_r1260734656
##########
airflow/api/client/local_client.py:
##########
@@ -28,15 +28,32 @@
class Client(api_client.Client):
"""Local API client implementation."""
- def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None,
replace_microseconds=True):
+ def trigger_dag(
+ self, dag_id, run_id=None, conf=None, execution_date=None,
replace_microseconds=True
+ ) -> dict | None:
dag_run = trigger_dag.trigger_dag(
dag_id=dag_id,
run_id=run_id,
conf=conf,
execution_date=execution_date,
replace_microseconds=replace_microseconds,
)
- return f"Created {dag_run}"
+ if dag_run:
+ return {
+ "conf": dag_run.conf,
+ "dag_id": dag_run.dag_id,
+ "dag_run_id": dag_run.run_id,
+ "data_interval_end": dag_run.data_interval_start,
Review Comment:
Clearly this is a bug, here is the fix: #32548
--
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]