Module: NimbleNodes::Workers

Defined in:
lib/nimble_nodes/workers.rb

Class Method Summary collapse

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/nimble_nodes/workers.rb', line 5

def self.active?
  ENV.has_key?('NN_WORKERS_POOL_ACTIVE')
end

.maxObject



17
18
19
# File 'lib/nimble_nodes/workers.rb', line 17

def self.max
  ENV['NN_WORKERS_POOL_MAX']
end

.max_job_queueObject



29
30
31
# File 'lib/nimble_nodes/workers.rb', line 29

def self.max_job_queue
  ENV['NN_WORKERS_JOB_QUEUE_MAX']
end

.minObject



13
14
15
# File 'lib/nimble_nodes/workers.rb', line 13

def self.min
  ENV['NN_WORKERS_POOL_MIN']
end

.min_job_queueObject



25
26
27
# File 'lib/nimble_nodes/workers.rb', line 25

def self.min_job_queue
  ENV['NN_WORKERS_JOB_QUEUE_MIN']
end

.sizeObject



9
10
11
# File 'lib/nimble_nodes/workers.rb', line 9

def self.size
  ENV['NN_WORKERS_POOL_SIZE']
end