vatsrahul1001 commented on code in PR #46295:
URL: https://github.com/apache/airflow/pull/46295#discussion_r1941628261
##########
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:
Do you mean we do not need a CLEARED_RUN state and instead we can you
IN_FLIGHT for a clear run as well?
--
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]