dstandish commented on code in PR #46295:
URL: https://github.com/apache/airflow/pull/46295#discussion_r1941621172
##########
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:
isn't it still true that it is in flight, in this case? it might also be
true that it was cleared; but, the primary reason would still seem, to me, to
be that the run is in flight
--
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]