I am interested in using Resque to distribute work to many different computers. I have one concern though. If I need to kill one of the workers that is working on a job, I would like to be able to have it automatically requeue that job to ensure that it gets run by another worker. I’ve worked with Django Celery and just do CTRL+C which kills the worker as well as requeues the task. Is there a way for this to happen with Resque in Rails? Thank you!
I am interested in using Resque to distribute work to many different computers. I
Share
I just figured it out. I can trap the signal term (CTRL-C) and force it to either requeue the job or tell the job to fail and have resque-retry requeue the job at a later time.
For example:
Sorry for the silly question 😉