Class: SolidLoop::Reaper::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid_loop/reaper.rb

Overview

DIAGNOSTIC return value: the counters below are a best-effort summary of what one reap! pass did, intended for logging / liveness metrics — NOT a stable, precise public API. In particular cleaned_shell_loops counts LOOPS whose orphaned processing shells were cleaned (incremented once per loop), not the number of shell ROWS cleaned; the name says so to avoid the earlier "shells" mis-read (a single loop can own several shells). Treat the struct as a diagnostic snapshot; the field set may grow across releases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cleaned_shell_loopsObject

Returns the value of attribute cleaned_shell_loops

Returns:

  • (Object)

    the current value of cleaned_shell_loops



23
24
25
# File 'lib/solid_loop/reaper.rb', line 23

def cleaned_shell_loops
  @cleaned_shell_loops
end

#repaired_gapsObject

Returns the value of attribute repaired_gaps

Returns:

  • (Object)

    the current value of repaired_gaps



23
24
25
# File 'lib/solid_loop/reaper.rb', line 23

def repaired_gaps
  @repaired_gaps
end

#requeued_dead_llmObject

Returns the value of attribute requeued_dead_llm

Returns:

  • (Object)

    the current value of requeued_dead_llm



23
24
25
# File 'lib/solid_loop/reaper.rb', line 23

def requeued_dead_llm
  @requeued_dead_llm
end

#requeued_stale_queueObject

Returns the value of attribute requeued_stale_queue

Returns:

  • (Object)

    the current value of requeued_stale_queue



23
24
25
# File 'lib/solid_loop/reaper.rb', line 23

def requeued_stale_queue
  @requeued_stale_queue
end

#requeued_stalled_toolsObject

Returns the value of attribute requeued_stalled_tools

Returns:

  • (Object)

    the current value of requeued_stalled_tools



23
24
25
# File 'lib/solid_loop/reaper.rb', line 23

def requeued_stalled_tools
  @requeued_stalled_tools
end

Instance Method Details

#totalObject



31
32
33
# File 'lib/solid_loop/reaper.rb', line 31

def total
  requeued_dead_llm + cleaned_shell_loops + requeued_stalled_tools + repaired_gaps + requeued_stale_queue
end