sunank200 commented on code in PR #46390:
URL: https://github.com/apache/airflow/pull/46390#discussion_r1948421890


##########
airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -99,15 +100,11 @@ def check_data_intervals(cls, values):
     @model_validator(mode="after")
     def validate_dag_run_id(self):
         if not self.dag_run_id:
-            self.dag_run_id = DagRun.generate_run_id(DagRunType.MANUAL, 
self.logical_date)
+            self.dag_run_id = DagRun.generate_run_id(
+                DagRunType.MANUAL, self.logical_date if self.logical_date is 
not None else pendulum.now("UTC")
+            )

Review Comment:
   We should add this TODO as an issue so that we don't miss it.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to