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

Custom retry delay duration from supplier function #82

Closed
astubbs opened this issue Mar 2, 2021 · 4 comments · Fixed by #92
Closed

Custom retry delay duration from supplier function #82

astubbs opened this issue Mar 2, 2021 · 4 comments · Fixed by #92
Labels

Comments

@astubbs
Copy link
Contributor

astubbs commented Mar 2, 2021

Most flexible, pluggable retry delay system - user provides a function that generates a retry delay.

@astubbs astubbs mentioned this issue Mar 2, 2021
5 tasks
@astubbs
Copy link
Contributor Author

astubbs commented Mar 2, 2021

@radoslawtwardy how does this look? : master...astubbs:retry-delay-generator-func
It's a simple change. The other option I'd been thinking about, would be for the user function to throw a "retry exception" which will contain the retry delay as a field. The motivation for that solution is it gives the user ultimate context to generate the retry delay. Where as the retry delay function option only gives the user the WorkContainer as context.

@radoslawtwardy
Copy link

I'm not sure how can I use it. To write custom function i must has some retry count context, or something like it. For example i want write simple algorithm:
2^retryNb [s]
How i can use WorkContainer to do it? Maybe i can get some previous, effective delay from it ?

@astubbs
Copy link
Contributor Author

astubbs commented Mar 2, 2021 via email

@astubbs
Copy link
Contributor Author

astubbs commented Feb 15, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants