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

make it possible to influence the retry strategy #172

Merged
merged 7 commits into from
Nov 13, 2023
Merged

Conversation

rwiker
Copy link
Contributor

@rwiker rwiker commented Nov 13, 2023

With this change, it is possible to pass a RetryStrategy object to the SumoClient. This allows us to specify values for stop_after (maximum number of tries), exp_base (the factor by which the retry sleep delay is increased for each retry) and multiplier(the initial retry sleep delay).

@rwiker rwiker requested a review from a team November 13, 2023 13:37
Copy link
Contributor

@equinor-ruaj equinor-ruaj left a comment

Choose a reason for hiding this comment

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

lgtm

tests/test_sumo_thin_client.py Show resolved Hide resolved
@rwiker
Copy link
Contributor Author

rwiker commented Nov 13, 2023 via email

@rwiker rwiker merged commit baf2520 into main Nov 13, 2023
14 checks passed
@rwiker rwiker deleted the retry-strategy branch November 13, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants