ashb opened a new pull request #10729:
URL: https://github.com/apache/airflow/pull/10729


   Once HA mode for scheduler lands, we can no longer reset orphaned
   task by looking at the tasks in (the memory of) the current executor.
   
   This changes it to keep track of which (Scheduler)Job queued/scheduled a
   TaskInstance (the new "queued_by_job_id" column stored against
   TaskInstance table), and then we can use the existing heartbeat
   mechanism for jobs to notice when a TI should be reset.
   
   As part of this the existing implementation of
   `reset_state_for_orphaned_tasks` has been moved out of BaseJob in to
   BackfillJob -- as only this and SchedulerJob had these methods, and the
   SchedulerJob version now operates differently


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to