uranusjr commented on a change in pull request #18226:
URL: https://github.com/apache/airflow/pull/18226#discussion_r709804091
##########
File path: airflow/api/common/experimental/trigger_dag.py
##########
@@ -82,6 +82,7 @@ def _trigger_dag(
for _dag in dags_to_trigger:
trigger = _dag.create_dagrun(
run_id=run_id,
+ start_date=timezone.utcnow(),
Review comment:
You’re correct. Although maybe we shouldn’t set this to `RUNNING` in the
first place, but should set it to `QUEUED` and let the scheduler start the run
(and set `start_date`) instead. See how this is implemented in the new REST API
(in `airflow/api_connexion/endpoints/dag_run_endpoint.py::post_dag_run`).
--
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]