Sha256: 8947f5734e9996bdeb6e4a21ff7cec08c8bb906817feef1e8a0f39d72eb4f1d2

Contents?: true

Size: 591 Bytes

Versions: 61

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module OnConflict
    # Strategy to log information about conflict
    #
    # @author Mikael Henriksson <mikael@mhenrixon.com>
    class Log < OnConflict::Strategy
      include SidekiqUniqueJobs::Logging

      #
      # Logs an informational message about that the job was not unique
      #
      #
      # @return [void]
      #
      def call
        log_info(<<~MESSAGE.chomp)
          Skipping job with id (#{item[JID]}) because lock_digest: (#{item[LOCK_DIGEST]}) already exists
        MESSAGE
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.1.3 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.1.2 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.1.1 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.1.0 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.12 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.11 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.10 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.9 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.8 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.7 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.6 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.5 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.4 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.3 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.2 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.1 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.0 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.0.beta29 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.0.beta28 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-7.0.0.beta27 lib/sidekiq_unique_jobs/on_conflict/log.rb