Skip to content

Conversation

@apetenchea
Copy link
Member

Purpose

Added allow_retry query parameter, making it possible to retry fetching the latest batch from a cursor. This corresponds to the allowRetry parameter from the REST API.

In case the latest fetch failed, cursor.retry() yields the latest batch that is cached. Note that if fetch succeeds, retry works just the same as a normal fetch, yielding the next batch.

Tests
Two new cursor tests have been added.

@apetenchea apetenchea self-assigned this Jul 10, 2023
@apetenchea apetenchea changed the title Feature/de 544 retriable batch reads [DE-544] Retriable batch reads Jul 10, 2023
@CryptoNinjaGeek CryptoNinjaGeek merged commit b82de8c into main Jul 11, 2023
@CryptoNinjaGeek CryptoNinjaGeek deleted the feature/de-544-retriable-batch-reads branch July 11, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants