class SidekiqUniqueJobs::Lock::ClientValidator
@author Mikael Henriksson <mikael@mhenrixon.com>
Validates the sidekiq options for the Sidekiq client process
def self.validate(lock_config)
Validates the sidekiq options for the Sidekiq client process
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