subhash-0000 commented on code in PR #60818:
URL: https://github.com/apache/airflow/pull/60818#discussion_r2757096473
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -598,9 +598,11 @@ def get_running_dag_runs_to_examine(cls, session: Session)
-> ScalarResult[DagRu
.where(cls.state == DagRunState.RUNNING)
.join(DagModel, DagModel.dag_id == cls.dag_id)
.join(BackfillDagRun, BackfillDagRun.dag_run_id == DagRun.id,
isouter=True)
+ .join(Backfill, isouter=True)
.where(
- DagModel.is_paused == false(),
DagModel.is_stale == false(),
+ # allow backfills to run on paused DAGs
+ or_(DagModel.is_paused == false(),
DagRun.backfill_id.isnot(None)),
Review Comment:
@jroachgolf84 Does my explanation address your question? Let me know if
you'd like me to clarify further or make any changes. Happy to adjust the
implementation if needed
--
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]