Sha256: 8430d63fd2cecf26e8ee23f66bcfeb4641b8263e8e701a80b3a9153be5229e8d

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

#
# Module with constants to avoid string duplication
#
# @author Mikael Henriksson <mikael@zoolutions.se>
#
module SidekiqUniqueJobs
  ARGS_KEY                  ||= "args"
  AT_KEY                    ||= "at"
  CLASS_KEY                 ||= "class"
  JAVA                      ||= "java"
  JID_KEY                   ||= "jid"
  LOCK_DIGEST_KEY           ||= "lock_digest"
  LOCK_EXPIRATION_KEY       ||= "lock_expiration"
  LOCK_TIMEOUT_KEY          ||= "lock_timeout"
  LOCK_TTL_KEY              ||= "lock_ttl"
  LOG_DUPLICATE_KEY         ||= "log_duplicate_payload"
  QUEUE_KEY                 ||= "queue"
  UNIQUE_ACROSS_QUEUES_KEY  ||= "unique_across_queues"
  UNIQUE_ACROSS_WORKERS_KEY ||= "unique_across_workers"
  UNIQUE_ARGS_KEY           ||= "unique_args"
  UNIQUE_DIGEST_KEY         ||= "unique_digest"
  UNIQUE_KEY                ||= "unique"
  UNIQUE_SET                ||= "unique:keys"
  LOCK_KEY                  ||= "lock"
  ON_CONFLICT_KEY           ||= "on_conflict"
  UNIQUE_ON_ALL_QUEUES_KEY  ||= "unique_on_all_queues" # TODO: Remove in v6.1
  UNIQUE_PREFIX_KEY         ||= "unique_prefix"
  RETRY_SET                 ||= "retry"
  SCHEDULE_SET              ||= "schedule"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.24 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-6.0.23 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-6.0.22 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-6.0.21 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-6.0.20 lib/sidekiq_unique_jobs/constants.rb