Uh oh!
There was an error while loading. Please reload this page.
Fix DagVersion when clearing tasks with run on latest version (#65835) - #67673
Fix DagVersion when clearing tasks with run on latest version (#65835)#67673Codingaditya17 wants to merge 1 commit into
Conversation
Codingaditya17
commented
May 29, 2026
The failing checks appear unrelated to this backport. This PR only changes The current failures are in unrelated areas:
I verified the changed file locally with:
and it passed. |
Codingaditya17
commented
May 30, 2026
The current failing static checks appear unrelated to this backport. This PR only changes The static check failure is from The integration failure is also in OTEL tests under I verified the changed file locally with:
and it passed. |
potiuk
commented
Jun 1, 2026
@Codingaditya17 A few things need addressing before review — see our Pull Request quality criteria. No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
…#65835) * Fix DagVersion when clearing tasks with run on latest version * UI: Merge two useEffects in ClearGroupTaskInstanceDialog * UI: Add spacing between clear task checkboxes * UI: Share run on latest version logic for clear dialogs * UI: Merge two useEffects in ClearTaskInstanceDialog * Fix CI: apply pre-commit auto-fixes
34968c0 to
ef7b139CompareCodingaditya17
commented
Jun 1, 2026
Addressed the static check failures. Changes added:
Verified locally:
|
jscheffl
commented
Jun 1, 2026
Note that the v3-1-test branch is currently not maintained anymore, only very low probably a fix on v3-2-test might be cut, else from main we will start releasing 3.3.0 soon. |
Codingaditya17
commented
Jun 2, 2026
Thanks for the clarification. Since Given that this was reported against 3.1.6, would you prefer that I close this PR, or should I check whether a focused backport to |
jscheffl
commented
Jun 2, 2026
As far as I see the original fix was backported in #66901 to v3-2-test maintenance branch and should have been released last week together with 3.2.2. So I assume nothing need to be done on-top. You can close the PR in my view. |
This backports the DagVersion alignment fix from #65835 to the 3.1 line.
When clearing task instances with
run_on_latest_version=True, the cleared task instances should use the latest serialized DAG version. For queued or running DagRuns, the DagRun's created DAG version and bundle version also need to be aligned so the next task execution uses the latest DAG bundle instead of the older one.This issue was reported against Airflow 3.1.6 in #67657. The fix already exists on newer branches, but was missing from
v3-1-test.Testing:
uv run ruff check airflow-core/src/airflow/models/taskinstance.py