Asquator commented on code in PR #61274:
URL: https://github.com/apache/airflow/pull/61274#discussion_r2771489777


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2282,7 +2282,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)))
+                ).all()
+                last_unfinished_ti = (

Review Comment:
   Well, `start_date` is exactly the field I'm using here. On timeout, we 
assume there are unfinished tasks, which means they have no `end_date` yet.



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

Reply via email to