Sha256: 96beb5f2fcf3e5c63b849ded1c4958871c464c214b3b50c3069cb206ca156e2d
Contents?: true
Size: 416 Bytes
Versions: 6
Compression:
Stored size: 416 Bytes
Contents
require 'resque/worker' class Resque::Pool module PooledWorker def shutdown_with_pool shutdown_without_pool || Process.ppid == 1 end def self.included(base) base.instance_eval do alias_method :shutdown_without_pool, :shutdown? alias_method :shutdown?, :shutdown_with_pool end end end end Resque::Worker.class_eval do include Resque::Pool::PooledWorker end
Version data entries
6 entries across 6 versions & 3 rubygems