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

Retry if a request fails #42

Open
sneakypete81 opened this issue May 30, 2013 · 1 comment
Open

Retry if a request fails #42

sneakypete81 opened this issue May 30, 2013 · 1 comment

Comments

@sneakypete81
Copy link
Contributor

Very occasionally API requests to the hosted site fail:

Perhaps I should raise a photo/frontend issue? I never see this when running on a self-hosted server, so I can't look at the logs.

It would be nice if the Python library automatically retried these failed requests a couple of times. I'm not sure if we'd want to support this for all failures, or just a subset (eg. 500 errors).

If we do this, the number of retries to be configurable (or set to 0 to disable).

@jmathai
Copy link
Member

jmathai commented Jun 3, 2013

0 by default. I like this though as most of our queue runners retry a fixed number of times against our and others' API.

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

2 participants