Module: Wurk::Job
- Included in:
- Sidekiq::ActiveJob::Wrapper, Batch::CallbackJob, Batch::Empty
- Defined in:
- lib/wurk/job.rb,
lib/wurk/job/options.rb
Overview
Sidekiq 7+ alias for Wurk::Worker. ‘include Wurk::Job` and `include Sidekiq::Job` are the same surface.
Instance-level ‘jid`, `_context`, `interrupted?`, and `logger` come from Wurk::Worker. Class-level DSL (`sidekiq_options`, `perform_*`, `set`, retry blocks) does too — Job is a pure alias module that re-exposes Worker under the modern name.
Defined Under Namespace
Modules: Options Classes: Interrupted
Class Method Summary collapse
- .clear_all ⇒ Object
- .drain_all ⇒ Object
- .included(base) ⇒ Object
-
.jobs ⇒ Object
Mirror the module-level test helpers so ‘Sidekiq::Job.jobs / clear_all / drain_all` work the same as `Sidekiq::Worker.*`.
Class Method Details
.clear_all ⇒ Object
30 |
# File 'lib/wurk/job.rb', line 30 def self.clear_all = Wurk::Worker.clear_all |
.drain_all ⇒ Object
31 |
# File 'lib/wurk/job.rb', line 31 def self.drain_all = Wurk::Worker.drain_all |