mperham/sidekiq — Issue #68: Killed Jobs are not requeued on Heroku
Author: dim
Created: 2012-03-06 10:36:40+00:00
State: open

I looked at https://github.com/mperham/sidekiq/issues/51, but the re-queueing doesn't seem to work on Heroku (using HEAD). This is from the logs:

2012-03-06T08:21:42+00:00 app[worker.1]: 2012-03-06T08:21:42Z 1 TID-aeam4 INFO: Shutting down
2012-03-06T08:21:42+00:00 app[worker.1]: 2012-03-06T08:21:42Z 1 TID-ow6lw INFO: Pausing 5 seconds to allow workers to finish...
2012-03-06T08:21:52+00:00 heroku[worker.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM
2012-03-06T08:21:52+00:00 heroku[worker.1]: Stopping process with SIGKILL
2012-03-06T08:21:54+00:00 heroku[worker.1]: Process exited with status 137

Unfortunately, nothing was re-queued. Every restart/deploy on heroku terminates the workers, meaning we are just loosing all running threads. Any ideas?