fix: dead workers showing as alive

This commit is contained in:
pinks 2023-09-23 20:51:13 +02:00
parent 9dbeb37fd7
commit 4e10168786
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export async function queueCommand(ctx: Grammy.CommandContext<Context>) {
: ["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",