forked from pinks/eris
1
0
Fork 0

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"], : ["Queue is empty.\n"],
"\nActive workers:\n", "\nActive workers:\n",
...config.sdInstances.flatMap((sdInstance) => [ ...config.sdInstances.flatMap((sdInstance) => [
activeGenerationWorkers.has(sdInstance.id) ? "✅ " : "☠️ ", activeGenerationWorkers.get(sdInstance.id)?.isProcessing ? "✅ " : "☠️ ",
fmt`${bold(sdInstance.name || sdInstance.id)} `, fmt`${bold(sdInstance.name || sdInstance.id)} `,
`(max ${(sdInstance.maxResolution / 1000000).toFixed(1)} Mpx) `, `(max ${(sdInstance.maxResolution / 1000000).toFixed(1)} Mpx) `,
"\n", "\n",