Skip to content

Support error.timeout_duration for onFailedAttempt. #66

Closed

Description

@issuefiler

“Trying again in 32 seconds.”

I propose p-retry provide error.timeout_duration, that is, in how much time the next retry begins, for onFailedAttempt.

This can be achieved by reading this._timeouts.

Activity

  1. issuefiler commented on May 29, 2022

    @issuefiler
    Author

    Or error.time_off. I don’t mind the property name.

  2. MCArth commented on Feb 9, 2024

    @MCArth

    p-retry uses https://github.com/tim-kos/node-retry and passes all options through

    so e.g. you can pass through

    				factor: 1.5,
    				minTimeout: 500,
    

    as options to p-retry which will result in an initial gap of 500ms between retries with a 1.5x exponential increase factor

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions