2020-02-27 13:09:21 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module SidekiqMiddleware
|
|
|
|
module DuplicateJobs
|
|
|
|
class Client
|
|
|
|
def call(worker_class, job, queue, _redis_pool, &block)
|
2020-09-15 17:09:35 -04:00
|
|
|
::Gitlab::SidekiqMiddleware::DuplicateJobs::DuplicateJob.new(job, queue).schedule(&block)
|
2020-02-27 13:09:21 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|