gitlab-org--gitlab-foss/lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/none.rb

20 lines
362 B
Ruby

# frozen_string_literal: true
module Gitlab
module SidekiqMiddleware
module DuplicateJobs
module Strategies
# This strategy will never deduplicate a job
class None < Base
def schedule(_job)
yield
end
def perform(_job)
yield
end
end
end
end
end
end