Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 327 Bytes
namespace :jobs do
desc "Clear the delayed_job queue."
task :clear => :environment do
Delayed::Job.delete_all
end
desc "Start a delayed_job worker."
task :work => :environment do
Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY'], :quiet => false).start
end
end
Something went wrong with that request. Please try again.