Asquator commented on code in PR #61274:
URL: https://github.com/apache/airflow/pull/61274#discussion_r2748629648
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2283,7 +2283,10 @@ def _schedule_dag_run(
select(TI)
.where(TI.dag_id == dag_run.dag_id)
.where(TI.run_id == dag_run.run_id)
- .where(TI.state.in_(State.unfinished))
+ .where(TI.state.in_(State.unfinished) |
(TI.state.is_(None)))
Review Comment:
I thought that tasks with `null` state should also be always marked as
`skipped` (the `in_` clause won't fetch them because of SQL semantics).
--
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]