Skip to content
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

Add binary exponential backoff to _flush_writes #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blakehawkins
Copy link

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