class SidekiqUniqueJobs::Lock::ServerValidator
Validates the sidekiq options for the Sidekiq
server process
@author Mikael Henriksson <mikael@mhenrixon.com>
Constants
- INVALID_ON_CONFLICTS
-
@return [Array<Symbol>] a collection of invalid conflict resolutions
Public Class Methods
Source
# File lib/sidekiq_unique_jobs/lock/server_validator.rb, line 19 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
Validates the sidekiq options for the Sidekiq
server process