Module: Sidekiq::CancellableWorker
- Defined in:
- lib/sidekiq/cancellable_worker.rb
Defined Under Namespace
Modules: ClassMethods
Classes: WorkerContext
Constant Summary
collapse
- VERSION =
'0.0.1'
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.prepended(base) ⇒ Object
15
16
17
|
# File 'lib/sidekiq/cancellable_worker.rb', line 15
def self.prepended(base)
base.extend(ClassMethods)
end
|
Instance Method Details
19
20
21
22
|
# File 'lib/sidekiq/cancellable_worker.rb', line 19
def perform(*)
@context = WorkerContext.new(jid)
super
end
|