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


##########
airflow/models/backfill.py:
##########
@@ -194,7 +194,11 @@ def _get_latest_dag_run_row_query(info, session):
 def _get_dag_run_no_create_reason(dr, reprocess_behavior: ReprocessBehavior) 
-> str | None:
     non_create_reason = None
     if dr.state not in (DagRunState.SUCCESS, DagRunState.FAILED):
-        non_create_reason = BackfillDagRunExceptionReason.IN_FLIGHT
+        if dr.clear_number == 0:
+            non_create_reason = BackfillDagRunExceptionReason.IN_FLIGHT
+        else:
+            non_create_reason = BackfillDagRunExceptionReason.CLEARED_RUN

Review Comment:
   Backfill changes will be done in seprate PR



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