Class: SidekiqUniqueJobs::OnConflict::Log
- Includes:
- Logging
- Defined in:
- lib/sidekiq_unique_jobs/on_conflict/log.rb
Overview
Strategy to log information about conflict
Instance Attribute Summary
Attributes inherited from Strategy
Instance Method Summary collapse
-
#call ⇒ Object
Logs an informational message about that the job was not unique.
Methods included from Logging
#log_debug, #log_error, #log_fatal, #log_info, #log_warn, #logger, #logging_context
Methods inherited from Strategy
Constructor Details
This class inherits a constructor from SidekiqUniqueJobs::OnConflict::Strategy
Instance Method Details
#call ⇒ Object
Logs an informational message about that the job was not unique
12 13 14 15 16 17 |
# File 'lib/sidekiq_unique_jobs/on_conflict/log.rb', line 12 def call log_info( "skipping job with id (#{item[JID_KEY]}) " \ "because unique_digest: (#{item[UNIQUE_DIGEST_KEY]}) already exists", ) end |