Class: RoundhouseUi::QueueSummary

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#latencyObject

Returns the value of attribute latency

Returns:

  • (Object)

    the current value of latency



10
11
12
# File 'lib/roundhouse_ui/queue_summary.rb', line 10

def latency
  @latency
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/roundhouse_ui/queue_summary.rb', line 10

def name
  @name
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



10
11
12
# File 'lib/roundhouse_ui/queue_summary.rb', line 10

def size
  @size
end