Sha256: fcbff2d8c545f9cb8c9bec004b9ae3dc6ceb8b24ac340d51d342988070ec44c5

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

require 'resque/tasks'
require 'resque/pool/tasks'
require 'resque/pool/lifeguard'

namespace :resque do

  namespace :pool do
     # resque pool config.  e.g. after_prefork connection handling
    task :lifeguard do
      defaults = FileOrHashLoader.new
      Resque::Pool.config_loader = Resque::Pool::Lifeguard.new defaults: defaults
      Resque::Pool.log "Resque Pool Lifeguard on Duty"
    end

    task setup: :lifeguard

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
resque-pool-lifeguard-0.4.0 lib/resque/pool/lifeguard/tasks.rb
resque-pool-lifeguard-0.3.0 lib/resque/pool/lifeguard/tasks.rb
resque-pool-lifeguard-0.2.1 lib/resque/pool/lifeguard/tasks.rb
resque-pool-lifeguard-0.2.0 lib/resque/pool/lifeguard/tasks.rb