Module: Reqless::Workers::BaseWorker::SupportsMiddlewareModules
- Included in:
- Reqless::Workers::BaseWorker
- Defined in:
- lib/reqless/worker/base.rb
Overview
Allow middleware modules to be mixed in and override the definition of around_perform while providing a default implementation so our code can assume the method is present.
Instance Method Summary collapse
Instance Method Details
#after_fork ⇒ Object
129 130 |
# File 'lib/reqless/worker/base.rb', line 129 def after_fork end |
#around_perform(job) ⇒ Object
125 126 127 |
# File 'lib/reqless/worker/base.rb', line 125 def around_perform(job) job.perform end |