Repository navigation
Log the retry reason in airflowctl API client retries - #75059
Merged
Lee-W merged 1 commit intoOct 20, 2026
Merged
Conversation
mattwang44
requested review from
bugraoz93,
dheerajturaga,
henry3260 and
potiuk
as code owners
October 19, 2026 05:57
The retry decorator on the airflowctl API client used before_log in the before_sleep slot. That callback runs after a failed attempt, but before_log only reports "Starting call to ..., this is the 1st time calling it.", which hides why the request is being retried and is off by one. Users saw repeated warnings with no hint of the connection error or 5xx that triggered them.
mattwang44
force-pushed
the
fix-airflowctl-retry-log-before-sleep
branch
from
October 19, 2026 05:58
f4f1015 to
e461446
Compare
Lee-W
approved these changes
Oct 19, 2026
Contributor
Backport successfully created: airflow-ctl/v0-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
Lee-W
pushed a commit
that referenced
this pull request
Oct 20, 2026
… retries (#75059) (#75198) Co-authored-by: W. H. Wang <[email protected]>
shahar1
pushed a commit
that referenced
this pull request
Nov 19, 2026
… retries (#75059) (#75198) Co-authored-by: W. H. Wang <[email protected]>
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.
When the airflowctl API client retries a failed request, its warning only says "Starting call ..., this is the 1st time calling it": no reason, and the count is off by one. The retry decorator passed
before_logwherebefore_sleep_logbelongs.With
before_sleep_logthe warning now reads "Retrying ... in 1.77 seconds as it raised ConnectError: ...". The Edge Worker client got the same fix in #58480.A new test captures the warning and fails on
main; the airflow-ctl tests pass.Was generative AI tooling used to co-author this PR?