Sha256: 4b48606cd77eb3b2226f5de83983777d2711f2dc5f4821b266e50365a169be96

Contents?: true

Size: 310 Bytes

Versions: 9

Compression:

Stored size: 310 Bytes

Contents

# require 'backburner/tasks'
# will give you the backburner tasks

namespace :backburner do
  # QUEUE=foo,bar,baz rake backburner:work
  desc "Start an backburner worker"
  task :work => :environment do
    queues = (ENV["QUEUE"] ? ENV["QUEUE"].split(',') : nil) rescue nil
    Backburner.work queues
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
backburner-0.2.6 lib/backburner/tasks.rb
backburner-0.2.5 lib/backburner/tasks.rb
backburner-0.2.0 lib/backburner/tasks.rb
backburner-0.1.2 lib/backburner/tasks.rb
backburner-0.1.1 lib/backburner/tasks.rb
backburner-0.1.0 lib/backburner/tasks.rb
backburner-0.0.3 lib/backburner/tasks.rb
backburner-0.0.2 lib/backburner/tasks.rb
backburner-0.0.1 lib/backburner/tasks.rb