Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Forked from jacquescrocker/resque.rake
Created April 11, 2011 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/913808 to your computer and use it in GitHub Desktop.
Save mrrooijen/913808 to your computer and use it in GitHub Desktop.
# lib/tasks/resque.rake
require 'resque/tasks'
task "resque:setup" => :environment do
ENV["VVERBOSE"] = "1" if Rails.env.development?
end
desc "Starts the heroku worker"
task "jobs:work" => :environment do
ENV["QUEUE"] = "*"
ENV["INTERVAL"] = "5"
Rake::Task["resque:setup"].invoke
Rake::Task["resque:work"].invoke
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment