Sha256: 4bda58e2a16c78b4062fb30a83e113456d9639d504aa594fbf26e6a183a04e2b
Contents?: true
Size: 764 Bytes
Versions: 24
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock # # Validates the sidekiq options for the Sidekiq server process # # @author Mikael Henriksson <mikael@zoolutions.se> # class ServerValidator # # @return [Array<Symbol>] a collection of invalid conflict resolutions INVALID_ON_CONFLICTS = [:replace].freeze # # Validates the sidekiq options for the Sidekiq server process # # def self.validate(lock_config) on_conflict = lock_config.on_server_conflict return lock_config unless INVALID_ON_CONFLICTS.include?(on_conflict) lock_config.errors[:on_server_conflict] = "#{on_conflict} is incompatible with the server process" end end end end
Version data entries
24 entries across 24 versions & 1 rubygems