2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
module Gitlab
|
|
|
|
module SidekiqMiddleware
|
|
|
|
class RequestStoreMiddleware
|
2020-04-08 14:13:33 +05:30
|
|
|
include Gitlab::WithRequestStore
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
def call(worker, job, queue)
|
2020-04-08 14:13:33 +05:30
|
|
|
with_request_store do
|
|
|
|
yield
|
|
|
|
end
|
2016-09-13 17:45:13 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|