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

Update REST Services retry logic #374

Open
jnm opened this issue Aug 22, 2024 · 0 comments
Open

Update REST Services retry logic #374

jnm opened this issue Aug 22, 2024 · 0 comments

Comments

@jnm
Copy link
Member

jnm commented Aug 22, 2024

In case of a failure, the background task will retry 3 times to send the data
(first time after 60 seconds, second time after 600 seconds, and third time
after 6,000 seconds). Email notifications can be enabled to receive a failure
report.

We need to update this documentation to say that KoboToolbox automatically retries requests to external servers only when one of the following errors is returned by the external server (ref):

  • HTTP 502 Bad Gateway
  • HTTP 503 Service Unavailable
  • HTTP 504 Gateway Timeout

All other failures require the user to retry manually.

Additionally, the automatic retry schedule is now different and much shorter: the retries happen after (approximately) 60, 120, and 240 seconds (ref).

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

No branches or pull requests

1 participant