Skip to content

Fix exponential backof bug #91

@alonf

Description

@alonf

A bug in the Exponential back of utility is that the exponent part is always seconds, even when we use minutes.
We need to fix and ensure that we add 1,2,4... minutes and not second:
Change this:
var exponentialDelay = Math.Pow(2, retryCount) + initialDelay.TotalSeconds / unitOfTime(1).TotalSeconds;

to something like:

var exponentialDelay = unitOfTime(Math.Pow(2, retryCount)) + initialDelay.TotalSeconds / unitOfTime(1).TotalSeconds;

Validate that this is the correct approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions