FrankYang0529 commented on PR #72048: URL: https://github.com/apache/airflow/pull/72048#issuecomment-5578388422
@dheerajturaga Good catch! Thanks for the review. 1. `_purge_jobs()` no longer treats `RESTARTING` as a failure. A `RESTARTING` job now only records the transition in `last_reported_state`, so the slot stays taken and the `RUNNING` that follows is reported as before. A worker that dies right after claiming still falls back to `[scheduler] task_queued_timeout` and then `revoke_task()`. 2. `try_adopt_task_instances()` now reads the `edge_job` rows of the executor's team, puts the matching keys back into `running`, and returns task instances without a job row as not adopted, so the scheduler clears and re-schedules them. -- 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]
