debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/none.rb
2021-01-30 21:13:34 +05:30

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