From 4e101687860a9e180d7b0e366f542e4daf1e5faf Mon Sep 17 00:00:00 2001 From: pinks Date: Sat, 23 Sep 2023 20:51:13 +0200 Subject: [PATCH] fix: dead workers showing as alive --- bot/queueCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/queueCommand.ts b/bot/queueCommand.ts index 52c6e3a..c567efc 100644 --- a/bot/queueCommand.ts +++ b/bot/queueCommand.ts @@ -42,7 +42,7 @@ export async function queueCommand(ctx: Grammy.CommandContext) { : ["Queue is empty.\n"], "\nActive workers:\n", ...config.sdInstances.flatMap((sdInstance) => [ - activeGenerationWorkers.has(sdInstance.id) ? "✅ " : "☠️ ", + activeGenerationWorkers.get(sdInstance.id)?.isProcessing ? "✅ " : "☠️ ", fmt`${bold(sdInstance.name || sdInstance.id)} `, `(max ${(sdInstance.maxResolution / 1000000).toFixed(1)} Mpx) `, "\n",