2018-11-19 21:01:13 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-07-01 15:51:21 -04:00
|
|
|
module Gitlab
|
|
|
|
module SidekiqMiddleware
|
|
|
|
class RequestStoreMiddleware
|
2020-02-25 13:09:02 -05:00
|
|
|
include Gitlab::WithRequestStore
|
|
|
|
|
2016-07-01 15:51:21 -04:00
|
|
|
def call(worker, job, queue)
|
2020-02-25 13:09:02 -05:00
|
|
|
with_request_store do
|
|
|
|
yield
|
|
|
|
end
|
2016-07-01 15:51:21 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|