Module: NimbleNodes::Workers
- Defined in:
- lib/nimble_nodes/workers.rb
Class Method Summary collapse
- .active? ⇒ Boolean
- .max ⇒ Object
- .max_job_queue ⇒ Object
- .min ⇒ Object
- .min_job_queue ⇒ Object
- .size ⇒ Object
Class Method Details
.active? ⇒ Boolean
5 6 7 |
# File 'lib/nimble_nodes/workers.rb', line 5 def self.active? ENV.has_key?('NN_WORKERS_POOL_ACTIVE') end |
.max ⇒ Object
17 18 19 |
# File 'lib/nimble_nodes/workers.rb', line 17 def self.max ENV['NN_WORKERS_POOL_MAX'] end |
.max_job_queue ⇒ Object
29 30 31 |
# File 'lib/nimble_nodes/workers.rb', line 29 def self.max_job_queue ENV['NN_WORKERS_JOB_QUEUE_MAX'] end |
.min ⇒ Object
13 14 15 |
# File 'lib/nimble_nodes/workers.rb', line 13 def self.min ENV['NN_WORKERS_POOL_MIN'] end |
.min_job_queue ⇒ Object
25 26 27 |
# File 'lib/nimble_nodes/workers.rb', line 25 def self.min_job_queue ENV['NN_WORKERS_JOB_QUEUE_MIN'] end |
.size ⇒ Object
9 10 11 |
# File 'lib/nimble_nodes/workers.rb', line 9 def self.size ENV['NN_WORKERS_POOL_SIZE'] end |