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.5.13 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.12 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.11 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.10 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.9 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.8 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.7 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.6 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.5 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.2 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.1 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.5.0 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.4.2 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.4.1 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.4.0 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.9 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
qu-0.2.0 lib/qu/tasks.rb
classiccms-0.3.8 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.7 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb
classiccms-0.3.6 vendor/bundle/gems/qu-0.1.4/lib/qu/tasks.rb