lingui.st Translating software made easy

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.

Lingui.st - Online Resource Editor, Manage your Ruby/Rails, Java, .Net and C++ language files with ease

Related posts:

  1. Resque Jobs automatically require Rails environment and Lib Classes
  2. Rails: Cron Job Scheduling using Redis, Resque and Rufus

Tags: , , ,