{"version":"2.1.328","anchor":"self-hosted-orchestrator-metrics-queue-wait-by-reason-and-s","canonical_anchor":"self-hosted-orchestrator-metrics-queue-wait-by-reason-and-s","heading":"Self-hosted orchestrator reports queue wait by start reason and abandoned sessions","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/self-hosted-orchestrator-metrics-queue-wait-by-reason-and-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Self-hosted orchestrator reports queue wait by start reason and abandoned sessions\n\nTwo new metrics show how long sessions wait in the queue for each start reason, and how many sessions were given up and why\n\n**What**\n\nThe self-hosted orchestrator, which starts Claude Code sessions on machines you run, publishes metrics in Prometheus format, a format monitoring tools read. It now also publishes:\n\n- `session_queue_wait_by_reason_seconds`, a histogram (counts of how many waits fell into each length range) of how long sessions waited in the queue, split by the `CLAUDE_RUNNER_SPAWN_REASON` value\n\n- `claude_code_self_hosted_orchestrator_sessions_given_up_total`, a count of sessions the orchestrator gave up on, split by cause: `lease_expiry`, `retries_exhausted` or `hook_declined`\n\n**Why**\n\nOperators can now see which start reasons keep sessions waiting longest and why some sessions are abandoned.\n\n- Area: Self-Hosted Runner\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}