Skip to content

Add binary exponential backoff to _flush_writes#11

Open
blakehawkins wants to merge 1 commit into
mbrenig:masterfrom
blakehawkins:exponential_backoff
Open

Add binary exponential backoff to _flush_writes#11
blakehawkins wants to merge 1 commit into
mbrenig:masterfrom
blakehawkins:exponential_backoff

Conversation

@blakehawkins

Copy link
Copy Markdown

This PR replaces an old PR that had rotted - I've not tested that this works as I don't have a local project running SheetSync.

Flushing changes to a remote document has some
probability of error for each batch. For large
changesets it becomes unlikely for writes to execute
successfully.

This commit causes writes to retry on failure using
exponential backoff, waiting 1, 2, 4, ... seconds
between writes, until success.

Flushing changes to a remote document has some
probability of error for each batch. For large
changesets it becomes unlikely for writes to execute
successfully.

This commit causes writes to retry on failure using
exponential backoff, waiting 1, 2, 4, ... seconds
between writes, until success.
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.

1 participant