Module: HireFire::Macro::Que
Constant Summary collapse
- VERSION_1_0_0 =
Gem::Version.new("1.0.0")
Instance Method Summary collapse
-
#job_queue_latency(*queues) ⇒ Float
Calculates the maximum job queue latency using Que.
-
#job_queue_size(*queues) ⇒ Integer
Calculates the total job queue size using Que.
Methods included from Deprecated::Que
Instance Method Details
#job_queue_latency(*queues) ⇒ Float
Calculates the maximum job queue latency using Que. If no queues are specified, it measures latency across all available queues.
26 27 28 29 30 31 32 |
# File 'lib/hirefire/macro/que.rb', line 26 def job_queue_latency(*queues) if version < VERSION_1_0_0 job_queue_latency_v0(*queues) else job_queue_latency_v1_v2(*queues) end end |
#job_queue_size(*queues) ⇒ Integer
Calculates the total job queue size using Que. If no queues are specified, it measures size across all available queues.
46 47 48 49 50 51 52 |
# File 'lib/hirefire/macro/que.rb', line 46 def job_queue_size(*queues) if version < VERSION_1_0_0 job_queue_size_v0(*queues) else job_queue_size_v1_v2(*queues) end end |