debian-mirror-gitlab/lib/gitlab/sidekiq_status/client_middleware.rb
2022-03-02 08:16:31 +05:30

13 lines
239 B
Ruby

# frozen_string_literal: true
module Gitlab
module SidekiqStatus
class ClientMiddleware
def call(_, job, _, _)
Gitlab::SidekiqStatus.set(job['jid'], job['status_expiration'])
yield
end
end
end
end