2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
|
|
|
module SidekiqStatus
|
|
|
|
class ClientMiddleware
|
|
|
|
def call(_, job, _, _)
|
2022-03-02 08:16:31 +05:30
|
|
|
Gitlab::SidekiqStatus.set(job['jid'], job['status_expiration'])
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|