Sha256: bb648836efc8a6f2f495e34349f238090a37d0b22b9755e6305a70afc77ebee9

Contents?: true

Size: 444 Bytes

Versions: 37

Compression:

Stored size: 444 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
        raise SidekiqUniqueJobs::Conflict, item
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.16 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta11 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta10 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.19 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta9 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta8 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta7 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta6 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta5 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta4 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta3 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-7.0.0.beta2 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.13 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.12 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.11 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.10 lib/sidekiq_unique_jobs/on_conflict/raise.rb
sidekiq-unique-jobs-6.0.9 lib/sidekiq_unique_jobs/on_conflict/raise.rb