Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0cbc53243d
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.418 kB
# Re-definitions are appended to existing tasks
task :environment
task :merb_env
namespace :jobs do
desc "Clear the delayed_job queue."
task :clear => [:merb_env, :environment] do
Delayed::Job.delete_all
end
desc "Start a delayed_job worker."
task :work => [:merb_env, :environment] do
Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY']).start
end
end
Jump to Line
Something went wrong with that request. Please try again.