Sha256: d93b88836b07b6dd0045c0092a879bc0bb1785584d87f2ccc06070d9a113627b
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
namespace :jobs do require 'mail' desc "Start a new worker" task work: :environment do worker = Afterparty::Worker.new worker.consume_sync end desc "Clear all jobs" task clear: :environment do Rails.configuration.queue.clear end desc "List Jobs" task list: :environment do jobs = Rails.configuration.queue.jobs_with_scores puts "#{jobs.values.size} total jobs." jobs.each do |time, job| puts time puts job end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
afterparty-0.0.4 | lib/tasks/tasks.rake |
afterparty-0.0.3 | lib/tasks/tasks.rake |