Add queue count stat to maintenance page
This commit is contained in:
parent
82c6d86046
commit
8c03ad008e
3 changed files with 17 additions and 0 deletions
|
@ -388,6 +388,8 @@ async function clearCacheForMessages(idsInput) {
|
|||
logger.aiLog("failed to clear cache for message", { level: 'error' }, e);
|
||||
return { ok: false };
|
||||
}
|
||||
} else if (msg?.type === "sortana:getQueueCount") {
|
||||
return { count: queuedCount + (processing ? 1 : 0) };
|
||||
} else {
|
||||
logger.aiLog("Unknown message type, ignoring", {level: 'warn'}, msg?.type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue