Sha256: 31bdb0b4d29d5fb5ee610227f362bf88d9f0ad8cd3a0538819cb6a5540bd87c0

Contents?: true

Size: 543 Bytes

Versions: 24

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

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

      # Logs an informational message about that the job was not unique
      def call
        log_info(
          "skipping job with id (#{item[JID_KEY]}) " \
          "because unique_digest: (#{item[UNIQUE_DIGEST_KEY]}) already exists",
        )
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.25 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.24 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.23 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.22 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.21 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.20 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.16 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.19 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.13 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.12 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.11 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.10 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.9 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.8 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.7 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.6 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.5 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.4 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.3 lib/sidekiq_unique_jobs/on_conflict/log.rb
sidekiq-unique-jobs-6.0.2 lib/sidekiq_unique_jobs/on_conflict/log.rb