-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 exception catching for when Redis server is down #1153
Comments
Using a process manager like systemd would help you with this. I think changing the behaviorto have workers sleep for a few seconds before retrying again would also be good. Please open a PR for this. |
I did consider systemd, but it was too much of a pain to set up on Docker, where my application is running. I will look into the PR |
If you're using Docker, why not rely on Docker's restart policy? for example |
After my Redis server went down briefly, it seems all of my workers were killed as a result of this error:
I would like them to stay alive, even if they are not working.
Could we add a try/except block around lines like:
rq/rq/queue.py
Line 441 in 75644ba
The text was updated successfully, but these errors were encountered: