13 lines
267 B
Ruby
13 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
module WaitableWorker
|
|
extend ActiveSupport::Concern
|
|
|
|
def perform(*args)
|
|
notify_key = args.pop if Gitlab::JobWaiter.key?(args.last)
|
|
|
|
super(*args)
|
|
ensure
|
|
Gitlab::JobWaiter.notify(notify_key, jid) if notify_key
|
|
end
|
|
end
|