Module: Gitlab::NotifyUponDeath

Extended by:
ActiveSupport::Concern
Included in:
JiraImport::ImportIssueWorker
Defined in:
app/workers/concerns/gitlab/notify_upon_death.rb

Overview

NotifyUponDeath can be included into a worker class if it should notify any JobWaiter instances upon being moved to the Sidekiq dead queue.

Note that this will only notify the waiter upon graceful termination, a SIGKILL will still result in the waiter not being notified.

Workers including this module must have jobs passed where the last argument is the key to notify, as a String.