Hyperlinkv0.8.0-beta.28

QueueHyperlink

QueueHyperlink.queueStatusconstsrc/QueueHyperlink.ts:122
Schema.Struct<{
  readonly sizes: Schema.Struct<{
    readonly high: Schema.Number
    readonly normal: Schema.Number
    readonly low: Schema.Number
  }>
  readonly paused: Schema.Boolean
  readonly inFlight: Schema.Number
  readonly completed: Schema.Number
  readonly phase: Schema.Literals<readonly ["running", "draining", "off"]>
}>

A queue's current-state snapshot — the element of the status stream. Instantaneous truth (what is), kept small and encodable (it crosses RPC). One snapshot a dashboard atom / CLI --watch / TUI renders. Distinct from events (discrete facts) and metrics (windowed aggregates).

wire schemas
export const queueStatus = Schema.Struct({
  sizes: queueSizes,
  paused: Schema.Boolean,
  inFlight: Schema.Number,
  completed: Schema.Number,
  // lifecycle phase (orthogonal to `paused`): running → draining (on shutdown) → off (terminal).
  phase: Schema.Literals(["running", "draining", "off"]),
});
Referenced by 1 symbols