class SidekiqUniqueJobs::Lock::ClientValidator
Validates the sidekiq options for the Sidekiq
client 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/client_validator.rb, line 19 def self.validate(lock_config) on_conflict = lock_config.on_client_conflict return lock_config unless INVALID_ON_CONFLICTS.include?(on_conflict) lock_config.errors[:on_client_conflict] = "#{on_conflict} is incompatible with the client process" lock_config end
Validates the sidekiq options for the Sidekiq
client process