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.7.5 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.7.4 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.7.3 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.7.2 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.7.1 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.7.0 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.9 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.8 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.7 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.6 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.5 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.4 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.3 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.2 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.1 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.6.0 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.17 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.16 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.15 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.14 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb