diff --git a/src/Utils/prometheus-metrics.ts b/src/Utils/prometheus-metrics.ts index dbe53000..e89a9908 100644 --- a/src/Utils/prometheus-metrics.ts +++ b/src/Utils/prometheus-metrics.ts @@ -1133,9 +1133,13 @@ export class MetricsServer { /** * Stop the metrics HTTP server + * FIX: Clears startPromise to allow restart after stop */ stop(): Promise { return new Promise((resolve) => { + // FIX: Clear cached promise so start() can be called again + this.startPromise = null + if (this.collectInterval) { clearInterval(this.collectInterval) this.collectInterval = null