Skip to content

Use before_sleep_log in retries of Edge Worker - #58480

Merged
jscheffl merged 1 commit into
apache:mainfrom
boschglobal:feature/use-before-sleep-log-in-edge-worker
Nov 19, 2025
Merged

jscheffl merged 1 commit into
apache:mainfrom
boschglobal:feature/use-before-sleep-log-in-edge-worker

Conversation

@wolfdn

@wolfdn wolfdn commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

This PR modifies the Tenacity logging on retries in the Edge Worker. Instead of using the before_log function we now use before_sleep_log.
This is as recommended in the Tenacity documentation: https://tenacity.readthedocs.io/en/latest/#before-and-after-retry-and-logging
The before_sleep_log function logs some more information than before_log which is useful for understanding the reason for a retry.

For more information:


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@wolfdn
wolfdn requested a review from jscheffl as a code owner November 19, 2025 07:35
@boring-cyborg boring-cyborg Bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Nov 19, 2025

@jscheffl jscheffl 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.

Cool! Thanks for the hint and improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants