Skip to content

Custom retry delay duration from supplier function #82

Closed

Description

@astubbs

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

Activity

  1. astubbs commented on Mar 2, 2021

    @astubbs
    ContributorAuthor

    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.

  2. radoslawtwardy commented on Mar 2, 2021

    @radoslawtwardy

    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 ?

  3. astubbs commented on Mar 2, 2021

    @astubbs
    ContributorAuthor
  4. astubbs commented on Feb 15, 2022

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions