Rake task for quitting Resque workers
Posted on July 22, 2010
I have been using Redis/Resque for some time now. Recently, I needed a Rake task to quit all running Resque workers for deploying an application via Continuous Integration using Hudson builds.
Here is with what I came up with:
Just place it in a rake file under the “lib/tasks” directory and you are good to go. If you are running “rake -T” from your Rails root you should see the task.
Related posts: