gitlab-org--gitlab-foss/lib/gitlab/sidekiq_status/client_middleware.rb

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