Sha256: 64a3e7a918d5602b69e8d4104dd6bb22c6977d8167aa5089051d84e9708ae8be

Contents?: true

Size: 450 Bytes

Versions: 13

Compression:

Stored size: 450 Bytes

Contents

# Re-definitions are appended to existing tasks

# Embed tasks from Delayed_job

namespace :jobs do
  desc "Clear the delayed_job queue."
  task :clear => :environment do
    Delayed::Job.delete_all
  end

  desc "Start a delayed_job worker."
  task :work => :environment do
    puts "Delayed::Job.new = #{Delayed::Job.new.inspect}"
    ::Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY']).start
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 lib/locomotive/railties/tasks.rake
locomotive_cms-1.0.0.beta lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta12 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta11 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta10 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta9 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta8 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta7 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta5 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta4 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta3 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta2 lib/locomotive/railties/tasks.rake
locomotive_cms-0.0.4.beta1 lib/locomotive/railties/tasks.rake