Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retries and timeout options to API calls #185

Open
david-hodgson-at-sky opened this issue Nov 8, 2024 · 1 comment
Open

Add retries and timeout options to API calls #185

david-hodgson-at-sky opened this issue Nov 8, 2024 · 1 comment

Comments

@david-hodgson-at-sky
Copy link

david-hodgson-at-sky commented Nov 8, 2024

Add to all the API calls the retries and timeout options to manage the error responses. Consider a retry-wait option to manage retry speed.

retries - number of times to try the request before failing (default=1)
timeout - time to wait before interpreting the request as failed
retry-wait - the base time to wait between tries for exponential backoff

Note: retries should probably be tries but the parameter name retries is in too wide use to fight against.

It would be useful if these options were added to GhApi as defaults for all API calls made.

@david-hodgson-at-sky
Copy link
Author

Possibly related to #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant