Module: SwitchmanInstJobs::Delayed::Settings

Defined in:
lib/switchman_inst_jobs/delayed/settings.rb

Class Method Summary collapse

Class Method Details

.configured_shard_idsObject


4
5
6
# File 'lib/switchman_inst_jobs/delayed/settings.rb', line 4

def self.configured_shard_ids
  (::Delayed::Settings.worker_config.try(:[], 'workers') || []).map { |w| w['shard'] }.compact.uniq
end