class Sidekiq::CancellableWorker::WorkerContext
Public Class Methods
new(jid)
click to toggle source
# File lib/sidekiq/cancellable_worker.rb, line 6 def initialize(jid) @jid = jid end
Public Instance Methods
cancelled?()
click to toggle source
# File lib/sidekiq/cancellable_worker.rb, line 10 def cancelled? ::Sidekiq.redis { |c| c.exists("cancelled-#{@jid}") } end