Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.611 kB
namespace :jobs do
desc "Alias for qc:work"
task :work => "qc:work"
end
namespace :qc do
desc "Start a new worker for the (default or $QUEUE) queue"
task :work => :environment do
QC::Worker.new.start
end
desc "Returns the number of jobs in the (default or QUEUE) queue"
task :count => :environment do
QC::Worker.new.queue.count
end
desc "Setup queue_classic tables and funtions in database"
task :create => :environment do
QC::Setup.create
end
desc "Remove queue_classic tables and functions from database."
task :drop => :environment do
QC::Setup.drop
end
end
Jump to Line
Something went wrong with that request. Please try again.