Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Retry initial sync forever #234

Merged
merged 1 commit into from
Mar 4, 2018
Merged

Retry initial sync forever #234

merged 1 commit into from
Mar 4, 2018

Conversation

Cadair
Copy link
Contributor

@Cadair Cadair commented Feb 17, 2018

This is an attempt at fixing #233

I haven't been able to test more than two initial syncs locally, I hope that someone with a larger account can give it a go!

@mujx
Copy link
Owner

mujx commented Feb 18, 2018

Thanks a lot for the PR!

We would like to retry indefinitely as long as the result from calling /sync is 504 (Gateway Timeout). If any other error occurs we should stop syncing and fallback to the login screen.

You could modify this signal to return the status code and based on that you decide whether or not to continue.

@mujx mujx merged commit 47c31b9 into mujx:master Mar 4, 2018
@Cadair Cadair deleted the sync_retries branch March 4, 2018 12:12
vurpo pushed a commit to vurpo/nheko that referenced this pull request Jun 28, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants