You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is code missing to gracefully shutdown a worker. The Worker.close() method kills the redis connection directly and doesn't wait for pending jobs to finish. As a result the (eventually) computed results gets never reported back.
Maybe I'm holding it wrong but how do you shutdown a worker gracefully the official way?
This works for us. The problem we have is that close() stop emitting failed event. So jobs that fail after close() are never properly handled in our application.
Version
1.14.0
Platform
Python
What happened?
I think there is code missing to gracefully shutdown a worker. The
Worker.close()
method kills the redis connection directly and doesn't wait for pending jobs to finish. As a result the (eventually) computed results gets never reported back.Maybe I'm holding it wrong but how do you shutdown a worker gracefully the official way?
My workaround looks like this:
Thank you 🙏
How to reproduce.
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: