Class: SidekiqUniqueJobs::OnConflict::Raise

Inherits:
Strategy
  • Object
show all
Defined in:
lib/sidekiq_unique_jobs/on_conflict/raise.rb

Overview

Strategy to raise an error on conflict

Author:

Instance Attribute Summary

Attributes inherited from Strategy

#item

Instance Method Summary collapse

Methods inherited from Strategy

#initialize, #replace?

Methods included from Logging

#log_debug, #log_error, #log_fatal, #log_info, #log_warn, #logger

Constructor Details

This class inherits a constructor from SidekiqUniqueJobs::OnConflict::Strategy

Instance Method Details

#callObject

Raise an error on conflict.

This will cause Sidekiq to retry the job


12
13
14
# File 'lib/sidekiq_unique_jobs/on_conflict/raise.rb', line 12

def call
  fail SidekiqUniqueJobs::Conflict, item
end