gitlab-org--gitlab-foss/lib/gitlab/sidekiq_status/server_middleware.rb
Rémy Coutable b05003af47
SidekiqStatus need to be qualified in some cases
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-14 18:37:21 +01:00

13 lines
209 B
Ruby

module Gitlab
module SidekiqStatus
class ServerMiddleware
def call(worker, job, queue)
ret = yield
Gitlab::SidekiqStatus.unset(job['jid'])
ret
end
end
end
end