Skip to content

Added retry, backoff to planetary_computer.sign #45

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

Merged
merged 3 commits into from
Sep 29, 2022
Merged

Conversation

TomAugspurger
Copy link

@TomAugspurger TomAugspurger commented Sep 19, 2022

Retries on failed HTTP requests to the SAS API.

Parameter names are taken from azure.core: https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-library-usage-patterns?tabs=pip#arguments-for-libraries-based-on-azurecore.

For now, I've chosen not to propagate these HTTP keywords through the rest of the API (like .sign) so you'll get retries whether you like it or not.

If / when we deem that a problem, we should consider a design (or maybe using the implementation of) azure-core: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md

Closes #44

@TomAugspurger TomAugspurger merged commit cee0aae into main Sep 29, 2022
@TomAugspurger TomAugspurger deleted the feature/retry branch September 29, 2022 14:12
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

Successfully merging this pull request may close these issues.

Add retry / backoff logic
1 participant