Skip to content

exponential backoffΒ #106

@straeter

Description

@straeter

Proposed change description

Hey there, great work!

As far as I can tell, there is a fixed waiting time for re-querying of 30 seconds -> "wait_fixed(30)" and this cannot be changed in the client.

Semanticscholar requires exponential back-off for the api usage (you have to agree to this if you apply for a api key) and this might also be a benefitial feature and could save a lot of time (like first retry after 5 seconds, then 10, 20 etc.). An argument like wait_type = fixed or exponential and a wait_time argument (which could be the base time for the exponential back-off) might be a nice addition and could be easily implemented with wait_exponential form tenecity.

I could also work on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions