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


##########
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:
   Run_id logic is being implemented in 
[PR](https://github.com/apache/airflow/pull/46398). I will update this after 
that change is merged



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