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

Redefine backoff strategy for retry middleware #95

Closed
ksysoev opened this issue Jun 22, 2024 · 2 comments · Fixed by #103
Closed

Redefine backoff strategy for retry middleware #95

ksysoev opened this issue Jun 22, 2024 · 2 comments · Fixed by #103
Assignees

Comments

@ksysoev
Copy link
Owner

ksysoev commented Jun 22, 2024

Current implementation of retry middleware use equals intervals between retries. It may be useful to have possibility to redefine policy for retry intervals.

probably we can accept optional argument with a function that will accept 2 parameters with current retry counter and initial retry interval, based on these parameters function should calculate interval that needs to be awaited.

@shan-96
Copy link
Contributor

shan-96 commented Jun 24, 2024

@ksysoev can I take this over? Also I think I don't need to wait for #94 to finish to begin this.

@ksysoev
Copy link
Owner Author

ksysoev commented Jun 25, 2024

@shan-96 sure, yes I think #94 can be implemented as separate parameter

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 a pull request may close this issue.

2 participants