module Sidekiq::Worker

Attributes

estimated_next_work_time[RW]
scheduled_work_time[RW]

Public Instance Methods

cancel_rekiq_worker?(*method_args) click to toggle source
# File lib/rekiq/worker.rb, line 79
def cancel_rekiq_worker?(*method_args)
  method_name = self.class.get_sidekiq_options['rekiq_cancel_method']

  !method_name.nil? and send(method_name, *method_args)
rescue StandardError => s
  raise ::Rekiq::CancelMethodInvocationError,
        "error while invoking rekiq_cancel_method: #{s.message}",
        s.backtrace
end