fix: dead workers showing as alive
This commit is contained in:
parent
9dbeb37fd7
commit
4e10168786
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue