Skip to content

Fix: remove upstream_failed from TERMINAL_DAG_RUN_STATES#166

Merged
kaxil merged 1 commit intomainfrom
fix-dag-run-terminal-states
Mar 24, 2026
Merged

Fix: remove upstream_failed from TERMINAL_DAG_RUN_STATES#166
kaxil merged 1 commit intomainfrom
fix-dag-run-terminal-states

Conversation

@josh-fell
Copy link
Contributor

Summary

  • Removed upstream_failed from TERMINAL_DAG_RUN_STATES in constants.py
  • Updated the corresponding assertion in test_utils.py

Why

upstream_failed is a task instance state, not a DAG run state. DAG runs only ever reach success or failed as terminal states. Including upstream_failed in TERMINAL_DAG_RUN_STATES was incorrect — a DAG run would never have that state, so polling logic would never stop on it anyway, but it was misleading and wrong.

upstream_failed remains correctly in FAILED_TASK_STATES, where it belongs.

upstream_failed is a task instance state, not a DAG run state.
DAG runs only reach success or failed as terminal states.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@josh-fell josh-fell marked this pull request as ready for review March 23, 2026 15:19
@kaxil kaxil merged commit fba4fb5 into main Mar 24, 2026
10 checks passed
@kaxil kaxil deleted the fix-dag-run-terminal-states branch March 24, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants