Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve @retry decorator #16762

Merged
merged 2 commits into from
Sep 7, 2024
Merged

Conversation

choppsv1
Copy link
Contributor

@choppsv1 choppsv1 commented Sep 7, 2024

tests: optionally pass seconds_left to retrying functions

This allows retrying functions to possibly change their logging level
for diagnostics.

In order to maintain backward compatibility with this longstanding
function we catch the specific exception of it not being handled by the
retrying function and call again w/o the argument.

This allows retrying functions to possibly change their logging level
for diagnostics.

In order to maintain backward compatibility with this longstanding
function we catch the specific exception of it not being handled by the
retrying function and call again w/o the argument.

Signed-off-by: Christian Hopps <[email protected]>
@frrbot frrbot bot added the tests Topotests, make check, etc label Sep 7, 2024
@Jafaral Jafaral merged commit 63148da into FRRouting:master Sep 7, 2024
14 checks passed
@choppsv1 choppsv1 deleted the chopps/diag-diff branch September 8, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master size/M tests Topotests, make check, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants