Fix DagVersion when clearing tasks with run on latest version#65835
Conversation
4b01db9 to
0144302
Compare
bbovenzi
left a comment
There was a problem hiding this comment.
Looking good. A few UI nits.
…test-dag-version # Conflicts: # airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
|
@bbovenzi |
|
LGTM except for static check issues |
cbe5d33 to
ed47bed
Compare
Backport failed to create: v3-2-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 8c43743 v3-2-testThis should apply the commit to the v3-2-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
#66901) * 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 (cherry picked from commit 8c43743) Co-authored-by: Yuseok Jo <yuseok89@gmail.com>
Problem
After clearing one task with "run on latest version", clearing another task in the same DagRun showed that task was not on the latest DagVersion. In the same situation, the "run with latest version" checkbox did not appear. The checkbox was gated on
bundle_versionchanges, so it stayed hidden when only DagVersion numbers differed.Solution
latest_dag_version.version_number≠ the clear target’s versiondag_version_idonly on cleared task instances, while still pointing the DagRun at the latestBefore
Screen.Recording.2026-04-25.at.12.07.41.AM.mov
After
Screen.Recording.2026-04-25.at.11.57.04.PM.mov
Screen.Recording.2026-04-25.at.11.58.04.PM.mov
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.