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

Engine: refactor task retry backoff logic #123

Merged
merged 2 commits into from
Apr 9, 2020
Merged

Conversation

loopfz
Copy link
Member

@loopfz loopfz commented Apr 9, 2020

Signed-off-by: Thomas Schaffer thomas.schaffer@corp.ovh.com

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Behavior fix

  • What is the current behavior? (You can also link to an open issue here)
    The retry backoff follows a pseudo logarithmic curve.

  • What is the new behavior (if this is a feature change)?
    Each retry pattern is assigned a specialized curve: linear from 1h to 3h (10 mins increments) for hours retry pattern, linear from 1 min to 30 mins (x1.6 coef) for minutes retry pattern, exponential from 10 secs to 10mins (x1.25 factor) for seconds retry pattern.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Other information:

Signed-off-by: Thomas Schaffer <thomas.schaffer@corp.ovh.com>
@loopfz loopfz requested a review from rbeuque74 as a code owner April 9, 2020 16:28
@loopfz loopfz requested a review from wI2L April 9, 2020 16:29
@loopfz loopfz force-pushed the backoff-refactor branch from 7da099f to 06a5da0 Compare April 9, 2020 16:46
Signed-off-by: Thomas Schaffer <thomas.schaffer@corp.ovh.com>
@loopfz loopfz force-pushed the backoff-refactor branch from 06a5da0 to 420d84f Compare April 9, 2020 17:02
@rbeuque74 rbeuque74 merged commit 2572447 into master Apr 9, 2020
@rbeuque74 rbeuque74 deleted the backoff-refactor branch April 9, 2020 17:11
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