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

Class Method Details

.clear_allObject



30
# File 'lib/wurk/job.rb', line 30

def self.clear_all  = Wurk::Worker.clear_all

.drain_allObject



31
# File 'lib/wurk/job.rb', line 31

def self.drain_all  = Wurk::Worker.drain_all

.included(base) ⇒ Object



23
24
25
# File 'lib/wurk/job.rb', line 23

def self.included(base)
  base.include(Wurk::Worker)
end

.jobsObject

Mirror the module-level test helpers so ‘Sidekiq::Job.jobs / clear_all / drain_all` work the same as `Sidekiq::Worker.*`.



29
# File 'lib/wurk/job.rb', line 29

def self.jobs       = Wurk::Worker.jobs