Skip to content

Backoff strategy #99

@remimourgues

Description

@remimourgues

Hi,
When setting an exponential backoff strategy for the client, is there a way to distinguish between a failed connection (for exemple if the engine server is down) and an empty list of retrieved tasks ?
I found that the BackoffJobAcquisitionStrategy can suit the needs, but I can't see how to relate it with the client.
Thanks for the help

Edit : to be more precise, I would like to have the back off only when failing to connect to the server. If the connection is ok but the list of tasks is empty, then we retry ~immediately.

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