diff --git a/Probe/API/Metrics.ts b/Probe/API/Metrics.ts index a69fb1f16e..60b4c0eb57 100644 --- a/Probe/API/Metrics.ts +++ b/Probe/API/Metrics.ts @@ -84,9 +84,11 @@ router.get( } } - // Include synthetic monitor semaphore pressure: monitors queued - // waiting for a browser slot indicate the probe is at capacity and - // Kubernetes should scale up more probe replicas. + /* + * Include synthetic monitor semaphore pressure: monitors queued + * waiting for a browser slot indicate the probe is at capacity and + * Kubernetes should scale up more probe replicas. + */ const semaphoreStatus: { running: number; queued: number; diff --git a/Probe/Utils/Monitors/MonitorTypes/SyntheticMonitorWorker.ts b/Probe/Utils/Monitors/MonitorTypes/SyntheticMonitorWorker.ts index a4dd4e6212..cbe22c96b6 100644 --- a/Probe/Utils/Monitors/MonitorTypes/SyntheticMonitorWorker.ts +++ b/Probe/Utils/Monitors/MonitorTypes/SyntheticMonitorWorker.ts @@ -168,14 +168,15 @@ async function ensureBrowser(config: WorkerConfig): Promise { currentProxyServer === configProxyServer && currentBrowser.isConnected() ) { - // Active health check: verify the browser can actually create pages, - // not just that the WebSocket connection is alive. This catches zombie - // browsers where the process is alive but internally broken. + /* + * Active health check: verify the browser can actually create pages, + * not just that the WebSocket connection is alive. This catches zombie + * browsers where the process is alive but internally broken. + */ let isHealthy: boolean = true; try { - const healthContext: BrowserContext = - await currentBrowser.newContext(); + const healthContext: BrowserContext = await currentBrowser.newContext(); const healthPage: Page = await healthContext.newPage(); await healthPage.close(); await healthContext.close();