Class: RoundhouseUi::QueueSummary
- Inherits:
-
Struct
- Object
- Struct
- RoundhouseUi::QueueSummary
- Defined in:
- lib/roundhouse_ui/queue_summary.rb
Overview
One row of the Queues page: name, depth, and how long the oldest waiting job has been waiting. A plain value object rather than a backend's own Queue, because the backends compute these in one batch — Sidekiq in a single pipeline, Solid Queue in a single grouped query — and handing back live objects invites the caller to re-read per row and undo that.
latency is seconds. Actions (pause, purge, snapshot) still go through
backend.queue(name); this carries no behaviour.
Instance Attribute Summary collapse
-
#latency ⇒ Object
Returns the value of attribute latency.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Attribute Details
#latency ⇒ Object
Returns the value of attribute latency
10 11 12 |
# File 'lib/roundhouse_ui/queue_summary.rb', line 10 def latency @latency end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/roundhouse_ui/queue_summary.rb', line 10 def name @name end |
#size ⇒ Object
Returns the value of attribute size
10 11 12 |
# File 'lib/roundhouse_ui/queue_summary.rb', line 10 def size @size end |