class Sidekiq::Hierarchy::Observers::JobUpdate

Public Instance Methods

call(job, status, old_status) click to toggle source
# File lib/sidekiq/hierarchy/observers/job_update.rb, line 9
def call(job, status, old_status)
  job.workflow.update_status(status)
end
register(callback_registry) click to toggle source
# File lib/sidekiq/hierarchy/observers/job_update.rb, line 5
def register(callback_registry)
  callback_registry.subscribe(Notifications::JOB_UPDATE, self)
end