-
-
Notifications
You must be signed in to change notification settings - Fork 251
ENH: Exponential backoff retry strategy #449
Copy link
Copy link
Closed
Labels
EnhancementNew feature or request, including adjustments in current codesNew feature or request, including adjustments in current codesEnvironmentEnviroment Class related featuresEnviroment Class related featuresGood first issueGood for newcomersGood for newcomers
Milestone
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or request, including adjustments in current codesNew feature or request, including adjustments in current codesEnvironmentEnviroment Class related featuresEnviroment Class related featuresGood first issueGood for newcomersGood for newcomers
Is your feature request related to a problem? Please describe.
Currently the Environment class practices a bad retry by iterating inside a while loop to catch API response within a certain number of maximum attempts. This can be problematic because the user can get blocked by the server or the API may not have enough time to process the new request after . A good standard is to apply exponential backoff, meaning that the execution will give longer pauses as the number of attempts increases.
Additional context