Module: Qless::Pool::PooledWorker
- Defined in:
- lib/qless/pool/pooled_worker.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/qless/pool/pooled_worker.rb', line 9 def self.included(base) base.instance_eval do alias_method :shutdown_without_pool, :shutdown? alias_method :shutdown?, :shutdown_with_pool end end |
Instance Method Details
#shutdown_with_pool ⇒ Object
5 6 7 |
# File 'lib/qless/pool/pooled_worker.rb', line 5 def shutdown_with_pool shutdown_without_pool || Process.ppid == 1 end |