Sha256: ff15eef4a5dc732a4d51781de098f8a60132346823ace8d2c6cffb2dffc3edc9

Contents?: true

Size: 1.98 KB

Versions: 13

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

#
# Module with constants to avoid string duplication
#
# @author Mikael Henriksson <mikael@mhenrixon.com>
#
module SidekiqUniqueJobs
  ARGS                  ||= "args"
  APARTMENT             ||= "apartment"
  AT                    ||= "at"
  CHANGELOGS            ||= "uniquejobs:changelog"
  CLASS                 ||= "class"
  CREATED_AT            ||= "created_at"
  DEAD_VERSION          ||= "uniquejobs:dead"
  DIGESTS               ||= "uniquejobs:digests"
  ERRORS                ||= "errors"
  JID                   ||= "jid"
  LIMIT                 ||= "limit"
  LIVE_VERSION          ||= "uniquejobs:live"
  LOCK                  ||= "lock"
  LOCK_ARGS             ||= "lock_args"
  LOCK_ARGS_METHOD      ||= "lock_args_method"
  LOCK_DIGEST           ||= "lock_digest"
  LOCK_EXPIRATION       ||= "lock_expiration"
  LOCK_INFO             ||= "lock_info"
  LOCK_LIMIT            ||= "lock_limit"
  LOCK_PREFIX           ||= "lock_prefix"
  LOCK_TIMEOUT          ||= "lock_timeout"
  LOCK_TTL              ||= "lock_ttl"
  LOCK_TYPE             ||= "lock_type"
  LOG_DUPLICATE         ||= "log_duplicate"
  ON_CLIENT_CONFLICT    ||= "on_client_conflict"
  ON_CONFLICT           ||= "on_conflict"
  ON_SERVER_CONFLICT    ||= "on_server_conflict"
  PAYLOAD               ||= "payload"
  PROCESSES             ||= "processes"
  QUEUE                 ||= "queue"
  RETRY                 ||= "retry"
  SCHEDULE              ||= "schedule"
  TIME                  ||= "time"
  TIMEOUT               ||= "timeout"
  TTL                   ||= "ttl"
  TYPE                  ||= "type"
  UNIQUE                ||= "unique"
  UNIQUE_ACROSS_QUEUES  ||= "unique_across_queues"
  UNIQUE_ACROSS_WORKERS ||= "unique_across_workers"
  UNIQUE_ARGS           ||= "unique_args"
  UNIQUE_ARGS_METHOD    ||= "unique_args_method"
  UNIQUE_DIGEST         ||= "unique_digest"
  UNIQUE_PREFIX         ||= "unique_prefix"
  UNIQUE_REAPER         ||= "uniquejobs:reaper"
  WORKER                ||= "worker"
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.0.12 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.11 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.10 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.9 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.8 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.7 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.6 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.5 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.4 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.3 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.2 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.1 lib/sidekiq_unique_jobs/constants.rb
sidekiq-unique-jobs-7.0.0 lib/sidekiq_unique_jobs/constants.rb