Sha256: 8b906b1a6b63ea8a097929069481aedac005e328142ed0442eb53a2db6a09eaa

Contents?: true

Size: 355 Bytes

Versions: 50

Compression:

Stored size: 355 Bytes

Contents

namespace :qu do
  desc "Start a worker"
  task :work  => :environment do
    queues = (ENV['QUEUES'] || ENV['QUEUE'] || 'default').to_s.split(',')
    Qu::Worker.new(*queues).start
  end
end

# Convenience tasks compatibility
task 'jobs:work'   => 'qu:work'
task 'resque:work' => 'qu:work'

# No-op task in case it doesn't already exist
task :environment

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
classiccms-0.3.5 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.4 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.3 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.2 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.1 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.0 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
qu-0.1.4 lib/qu/tasks.rb
qu-0.1.3 lib/qu/tasks.rb
qu-0.1.2 lib/qu/tasks.rb
qu-0.1.1 lib/qu/tasks.rb