Skip to content

Document how retry policies and durable execution work together - #73160

Merged
amoghrajesh merged 3 commits into
apache:mainfrom
astronomer:document-relation-between-durable-execution-and-retry-policies
Sep 18, 2026
Merged

amoghrajesh merged 3 commits into
apache:mainfrom
astronomer:document-relation-between-durable-execution-and-retry-policies

Conversation

@amoghrajesh

Copy link
Copy Markdown
Contributor

Was generative AI tooling used to co-author this PR?
  • Yes - claude sonnet

Retries, backoff, and fallbacks decide whether and when a task gets another attempt. The task state store decides what that next attempt remembers. Airflow has documented these as two unrelated features, so there was nowhere that explained how they compose, or when a task needs both.

This is a real gap for long-running or LLM-driven tasks: an agent-style task that makes a judgment call mid-run and takes hours or days to finish needs a retry policy that can tell a rate limit apart from bad credentials, and a state store that keeps its progress intact if a worker crashes partway through. Neither of the existing pages said so.

Add a "Retry policies and durable execution" section to the resumable tasks page that lays out what each primitive is responsible for, when to use both together, and how they interact (they are independent: a task still stops after its configured retry count regardless of what state it has checkpointed).


  • 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.

@ephraimbuddy ephraimbuddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nits

@amoghrajesh
amoghrajesh merged commit d878bef into apache:main Sep 18, 2026
70 checks passed
@amoghrajesh
amoghrajesh deleted the document-relation-between-durable-execution-and-retry-policies branch September 18, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants