Add configurable retries for getInfo calls and document retry tuning#304
Open
Add configurable retries for getInfo calls and document retry tuning#304
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds configurable retry and backoff handling for Earth Engine
getInfo()calls (metadata operations) to address issue #299, where users experience 429 rate-limit errors under quota pressure.Complements existing
getitem_kwargs(pixel fetch retries) with newgetinfo_kwargs(metadata call retries), giving users fine-grained control over retry behavior for both data and control-plane operations.🚀 Default Behavior
{'max_retries': 6, 'initial_delay': 1000}— Conservative 1000ms initial delay to reduce setup-time retry bursts against EE metadata endpointsget_infoproperty,extract_grid_params(),geometry_to_bounds()API Changes
xee.ext.open_dataset()
xee.helpers.extract_grid_params()
xee.helpers.geometry_to_bounds()
Test Coverage
Documentation Updates
Migration Notice⚠️
This work is being added post-v0.1.0 (merged to main a week ago). If you're testing this branch, your workflow may need to be updated to use the new API. Please see the migration guide for details on API changes introduced in v0.1.0.
Validation Request
@adkinsjd — We'd appreciate your feedback on whether this resolves the 429 errors in your workflow. If you test this branch, please report:
Install:
pip install --no-cache-dir "git+https://github.com/google/Xee.git@feat/retry-getinfo-calls"