debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/none.rb
2020-11-24 15:15:51 +05:30

23 lines
411 B
Ruby

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