uranusjr commented on code in PR #46512:
URL: https://github.com/apache/airflow/pull/46512#discussion_r1948422201


##########
airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -84,6 +84,8 @@ class TriggerDAGRunPostBody(StrictBaseModel):
     dag_run_id: str | None = None
     data_interval_start: AwareDatetime | None = None
     data_interval_end: AwareDatetime | None = None
+    logical_date: datetime | None = None
+    run_after: datetime | None = timezone.utcnow()

Review Comment:
   We can’t do this because the value is evaluated at _import time_ and 
everything ends up having the same run_after value. `utcnow` needs to be lazily 
called.



-- 
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