Module: WaitableWorker

Extended by:
ActiveSupport::Concern
Included in:
AuthorizedProjectUpdate::ProjectRecalculateWorker, AuthorizedProjectsWorker
Defined in:
app/workers/concerns/waitable_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object


46
47
48
49
50
51
52
# File 'app/workers/concerns/waitable_worker.rb', line 46

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