Skip to content

Clear retry policy state when a TI is cleared - #73889

Merged
vatsrahul1001 merged 4 commits into
apache:mainfrom
astronomer:retry-policy-ui-improvements-follow-up
Oct 26, 2026
Merged

vatsrahul1001 merged 4 commits into
apache:mainfrom
astronomer:retry-policy-ui-improvements-follow-up

Conversation

@amoghrajesh

Copy link
Copy Markdown
Contributor

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Follow up from #73030

A retry policy's decision describes one attempt, but both columns holding it outlived that attempt. Clearing a task reset its state and left them behind, and scheduling the next try bumped try_number without touching them, so a task that failed before it started reported the previous attempt's reason under the new attempt's number.

retry_delay_override is the one that changes behaviour rather than display: next_retry_datetime() prefers it over the task's own retry_delay, so a value left over from an earlier attempt silently retimed the next retry.

Clearing at both points is safe because the retry path archives the finished try, with its reason, into task_instance_history first.


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {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.

@amoghrajesh amoghrajesh self-assigned this Sep 29, 2026
@amoghrajesh amoghrajesh added this to the Airflow 3.4.0 milestone Sep 29, 2026
@amoghrajesh

Copy link
Copy Markdown
Contributor Author

@kaxil 3.4 item, can I get a review here?

@vatsrahul1001 vatsrahul1001 added the backport-to-v3-4-test Backport to v3-4-test label Oct 18, 2026
@kaxil

kaxil commented Oct 23, 2026

Copy link
Copy Markdown
Member

fyi @amoghrajesh this one is waiting on you

@amoghrajesh

Copy link
Copy Markdown
Contributor Author

Thnx ill take a look today

@vatsrahul1001
vatsrahul1001 merged commit 0df5500 into apache:main Oct 26, 2026
149 checks passed
@vatsrahul1001
vatsrahul1001 deleted the retry-policy-ui-improvements-follow-up branch October 26, 2026 10:00
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

kaxil pushed a commit that referenced this pull request Oct 26, 2026
…75646)

* Clear retry policy state when a TI is cleared

* fixing review from kaxil

* review comments from kaxil
(cherry picked from commit 0df5500)

Co-authored-by: Amogh Desai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-4-test Backport to v3-4-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants