Skip to content

Conversation

@YuriZmytrakov
Copy link
Collaborator

@YuriZmytrakov YuriZmytrakov commented Dec 18, 2025

Description:

This PR adds automatic retry functionality for datetime search queries to resolve cache race conditions. When an index is not found during a datetime search, the system will automatically retry the query up to 3 times. It retries on NotFoundError/ConnectionError (database connectivity issues). Configuration is available through the STAC_SEARCH_MAX_RETRIES env var, allowing adjustment of retry attempts between 1 and 10.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

Yuri Zmytrakov added 2 commits December 18, 2025 22:33
- Add retry decorator for execute_search on datetime queries
- Retry NotFoundError/ConnectionError with exponential backoff
- Configurable retry count via STAC_SEARCH_MAX_RETRY env var
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.

2 participants