Welcome to mirror list, hosted at ThFree Co, Russian Federation.

client_middleware.rb « sidekiq_status « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8471696dceaf65ac92ecc92febe84737a5eda6f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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