Skip to content

max_tries argument for retries #531

@daniel-sanche

Description

@daniel-sanche

Currently, retries only expire due to time-based timeout. In some cases, it is useful to have an attempt-based expiration option (for example, for datastore).

We could add a max_tries argument to our retry functions, and set it to None by default. But allow users to override it

This feature would have implications for #530, which would have to expose an additional failure reason instead of the bool is_timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions