Repository navigation
Document how common.ai agent tasks recover from provider and worker failures - #74708
Merged
Merged
Conversation
…ailures Add a "Recovering from failures" page that states, per failure, which setting handles it and whether completed steps are kept, replayed or run again, with a runnable example combining fallback_conn_ids and durable=True. Correct the timeout cost of a fallback chain in the provider fallback and retry policy pages: the OpenAI and Anthropic SDKs retry a timed-out request twice, and a rejected 400 is not retried.
vatsrahul1001
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The common.ai docs describe
fallback_conn_idsanddurable=Trueon separate pages, but nothing tells a platform owner what an agent task actually survives. This adds a "Recovering from failures" page under Reliability and operations. A table gives, per failure (provider error or timeout, whole chain down, worker lost orexecution_timeout), the setting that handles it and whether the steps the agent already completed are kept, replayed or run again. A new example Dag combines the two settings, and the page ends with what neither covers.The claim most likely to surprise a reviewer is that a failover continues an agent run rather than restarting it.
FallbackModelfails over per model request, and pydantic-ai sends the run's whole message history with every request, so the standby receives every tool result and no tool runs again. This was checked against real models (OpenAIgpt-5-miniand Anthropicclaude-sonnet-5), with the primary made to fail after a fixed number of requests:durable=True, whole chain fails on attempt 1The last row is why the page warns that editing
fallback_conn_idsbetween attempts discards the journal: the model in a step's fingerprint is the whole chain. The log block on the page comes fromairflow dags testof the new example with the primary pointed at a port nothing listens on.Two corrections to existing pages ride along, because the new page links to them.
provider_fallback.rstandretry_policies.rstsaid a 30-second timeout across three connections is a 90-second worst case; the OpenAI and Anthropic SDKs retry a timed-out request twice, so it is up to 270 seconds.provider_fallback.rstalso said a malformed prompt costs "N timeouts"; a 400 comes back at once and neither SDK retries it.{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.