Skip to content

[v3-4-test] Fix removed tasks fail_fast; stop finished TI overwrite (#76191) - #77154

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-e6fe78e-v3-4-test
Nov 25, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-e6fe78e-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Fix fail_fast scheduler crash loop when a task is removed mid-run

  • Pass the Dag to _stop_remaining_tasks

Both callers now hand over a SerializedDAG, so there is a single
task lookup and a single check for a task missing from the Dag.

  • Test fail_fast with unfinished TIs of removed task

REMOVED is filtered out by the query and never reached the missing-task
branch; cover the NULL and SCHEDULED states instead. Also use
TaskInstanceState in the tests added by this PR.

  • Test heartbeat-timeout fail_fast with a task removed

(cherry picked from commit e6fe78e)

Co-authored-by: ChickenBenny [email protected]
Co-authored-by: Tzu-ping Chung [email protected]

…76191)

* Fix fail_fast scheduler crash loop when a task is removed mid-run

* Pass the Dag to _stop_remaining_tasks

Both callers now hand over a SerializedDAG, so there is a single
task lookup and a single check for a task missing from the Dag.

* Test fail_fast with unfinished TIs of removed task

REMOVED is filtered out by the query and never reached the missing-task
branch; cover the NULL and SCHEDULED states instead. Also use
TaskInstanceState in the tests added by this PR.

* Test heartbeat-timeout fail_fast with a task removed

---------
(cherry picked from commit e6fe78e)

Co-authored-by: ChickenBenny <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
@vatsrahul1001
vatsrahul1001 enabled auto-merge (squash) November 25, 2026 12:43
@vatsrahul1001
vatsrahul1001 force-pushed the backport-e6fe78e-v3-4-test branch from ab6c1e8 to f946665 Compare November 25, 2026 12:43
@vatsrahul1001
vatsrahul1001 merged commit d654147 into v3-4-test Nov 25, 2026
109 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-e6fe78e-v3-4-test branch November 25, 2026 13:11
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: bug fix merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Nov 27, 2026
…76191) (#77154)

* Fix fail_fast scheduler crash loop when a task is removed mid-run

* Pass the Dag to _stop_remaining_tasks

Both callers now hand over a SerializedDAG, so there is a single
task lookup and a single check for a task missing from the Dag.

* Test fail_fast with unfinished TIs of removed task

REMOVED is filtered out by the query and never reached the missing-task
branch; cover the NULL and SCHEDULED states instead. Also use
TaskInstanceState in the tests added by this PR.

* Test heartbeat-timeout fail_fast with a task removed

---------
(cherry picked from commit e6fe78e)

Co-authored-by: ChickenBenny <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants