Sha256: fc4e1998eb0dd47cd633f0d53a4ef3cf49797b623c243a555320693ed2c7c2da

Contents?: true

Size: 237 Bytes

Versions: 13

Compression:

Stored size: 237 Bytes

Contents

namespace :resque do

  desc 'Kill the scheduler pid'
  task :quit_scheduler => :setup do
    require 'resque_scheduler'
    ResqueScheduler.pids.each do |pid|
      `kill -TERM #{pid}`
    end
  end

end if Resque.respond_to? :schedule

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
resque_manager-3.3.13 lib/tasks/scheduler.rake
resque_manager-3.3.12 lib/tasks/scheduler.rake
resque_manager-3.3.11 lib/tasks/scheduler.rake
resque_manager-3.3.10 lib/tasks/scheduler.rake
resque_manager-3.3.9 lib/tasks/scheduler.rake
resque_manager-3.3.8 lib/tasks/scheduler.rake
resque_manager-3.3.7 lib/tasks/scheduler.rake
resque_manager-3.3.6 lib/tasks/scheduler.rake
resque_manager-3.3.5 lib/tasks/scheduler.rake
resque_manager-3.3.4 lib/tasks/scheduler.rake
resque_manager-3.3.3 lib/tasks/scheduler.rake
resque_manager-3.3.2 lib/tasks/scheduler.rake
resque_manager-3.3.1 lib/tasks/scheduler.rake