Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

dbworker: Add exponential backoff to retry mechanism #13548

Open
@mrnugget

Description

@mrnugget

We currently only support setting a RetryAfter: time.Duration option. It would be nice if we could have exponential backoff.

Maybe the easiest way would be to provide a slice of durations:

RetryAfterDurations: []time.Duration{1*time.Second, 2*time.Second, 30*time.Second, 60*time.Second, ...}

That is then passed to the SQL and indexed by the num_resets column. Or something like that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions