Skip to content

[v3-3-test] Fix cleared tasks getting stuck when a Dag run has no version (#71696) - #71773

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-f5ec361-v3-3-test
Aug 30, 2026
Merged

potiuk merged 1 commit into
v3-3-testfrom
backport-f5ec361-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

A Dag run can have no version of its own: runs carried over from Airflow 2
predate the version columns, and airflow db clean can remove the version a
run was created with. Clearing such a run left its tasks without a version
too, and a task instance with no version is never enqueued — so the task sat
in queued until it timed out, while its revived run held up new ones. The
clear dialogs offered no way out either, since they only showed the
run-on-latest option when there was a version to compare against.
(cherry picked from commit f5ec361)

Co-authored-by: Jed Cunningham 66968678+jedcunningham@users.noreply.github.com

…sion (#71696)

A Dag run can have no version of its own: runs carried over from Airflow 2
predate the version columns, and `airflow db clean` can remove the version a
run was created with. Clearing such a run left its tasks without a version
too, and a task instance with no version is never enqueued — so the task sat
in queued until it timed out, while its revived run held up new ones. The
clear dialogs offered no way out either, since they only showed the
run-on-latest option when there was a version to compare against.
(cherry picked from commit f5ec361)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean cherry-pick of #71696 — verified the patch is byte-identical to the original commit on main (only blob hashes and hunk offsets differ). Rebased onto current v3-3-test, CI green.


Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting

@potiuk
potiuk merged commit fd88296 into v3-3-test Aug 30, 2026
117 of 126 checks passed
@potiuk
potiuk deleted the backport-f5ec361-v3-3-test branch August 30, 2026 00:03
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Aug 30, 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.3.2 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:translations area:UI Related to UI/UX. For Frontend Developers. kind:documentation translation:default type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants