BigW Consortium Gitlab

request_store_middleware.rb 246 Bytes
module Gitlab
  module SidekiqMiddleware
    class RequestStoreMiddleware
      def call(worker, job, queue)
        RequestStore.begin!
        yield
      ensure
        RequestStore.end!
        RequestStore.clear!
      end
    end
  end
end