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 logic #30

Closed
fbjork opened this issue Oct 19, 2011 · 1 comment
Closed

Retry logic #30

fbjork opened this issue Oct 19, 2011 · 1 comment

Comments

@fbjork
Copy link

fbjork commented Oct 19, 2011

How is the retry logic meant to work in qu? If an exception is raised, will the the worker retry the job (5 times be default in mongo) and if it fails write it to the failed collection?

@bkeepers
Copy link
Owner

There currently isn't retry logic. If an exception is raised, the job is added to the "failed" queue and it goes on to the next job. Qu doesn't currently offer a lot of visibility into the errors, so I'd recommend using the qu-exceptional backend (or write qu-airbrake) to report the errors to a separate service.

Once hooks are implemented, I'll add a retry plugin that lets you specify which errors should be retried and how many times.

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

3 participants