Skip to content

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

Draft
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-f5ec361-v3-3-test
Draft

[v3-3-test] Fix cleared tasks getting stuck when a Dag run has no version (#71696)#71773
github-actions[bot] wants to merge 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>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant