Sha256: d7dba7ce8ee042ea96c52c41e98bae865029c28bae8f9e05e2608dd264ef4384

Contents?: true

Size: 443 Bytes

Versions: 11

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module OnConflict
    # Strategy to raise an error on conflict
    #
    # @author Mikael Henriksson <mikael@zoolutions.se>
    class Raise < OnConflict::Strategy
      # Raise an error on conflict.
      #   This will cause Sidekiq to retry the job
      # @raise [SidekiqUniqueJobs::Conflict]
      def call
        fail SidekiqUniqueJobs::Conflict, item
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.8 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.7 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.6 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.5 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.4 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.3 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.2 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.1 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.0 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.0.rc8 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.0.rc7 lib/sidekiq_unique_jobs/on_conflict/raise.rb