Module: Wurk::Job

Included in:
Sidekiq::ActiveJob::Wrapper, Batch::CallbackJob, Batch::Empty
Defined in:
lib/wurk/job.rb,
lib/wurk/job/options.rb

Overview

The job mixin's control-flow errors. Wurk::Worker and Wurk::Job are one module (see job/options.rb), whose DSL and instance methods are in worker.rb.

Defined Under Namespace

Modules: Options Classes: DeadlineExceeded, Interrupted, TimedOut

Constant Summary collapse

Iterable =

Sidekiq drop-in: upstream homes the iterable module (and its enumerator classes) under Sidekiq::Job::Iterable. Since Sidekiq::Job == Wurk::Job, mirror that so Sidekiq::Job::Iterable::CsvEnumerator / …::ActiveRecordEnumerator resolve for ported code.

IterableJob
InterruptHandler =

Sidekiq exposes this middleware as Sidekiq::Job::InterruptHandler. Mirror that name onto Wurk::Job (aliased to Sidekiq::Job in compat) so the drop-in constant resolves. Spec: docs/target/sidekiq-free.md §10.3.

Wurk::Middleware::InterruptHandler