From b567535927cbd2cfed32773ffaa39cb631d7ad41 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Thu, 24 Oct 2024 11:29:32 +0100 Subject: [PATCH] fix: update default config and change severity of warning --- shared/packages/api/src/config.ts | 2 +- shared/packages/workforce/src/workforce.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/packages/api/src/config.ts b/shared/packages/api/src/config.ts index cbb6e8e1..4753b954 100644 --- a/shared/packages/api/src/config.ts +++ b/shared/packages/api/src/config.ts @@ -220,7 +220,7 @@ const appContainerArguments = defineArguments({ }, minCriticalWorkerApps: { type: 'number', - default: 0, + default: 1, describe: 'Number of Workers reserved for fulfilling playout-critical expectations that will be kept running', }, diff --git a/shared/packages/workforce/src/workforce.ts b/shared/packages/workforce/src/workforce.ts index eee0d644..b17cd325 100644 --- a/shared/packages/workforce/src/workforce.ts +++ b/shared/packages/workforce/src/workforce.ts @@ -218,7 +218,8 @@ export class Workforce { statuses['any-workers'] = this.workerAgents.size === 0 ? { - statusCode: StatusCode.BAD, + // This is perfectly normal in some scenarios, so we don't report this as an error + statusCode: StatusCode.GOOD, message: 'No workers connected to workforce', } : {