Fixed queue items counter

This commit is contained in:
Xoconoch
2025-08-02 10:04:58 -06:00
parent 5cb442244c
commit 54e6592de8
4 changed files with 94 additions and 16 deletions

View File

@@ -18,8 +18,8 @@ export type QueueStatus =
| "progress"
| "track_progress";
// Active task statuses - tasks that are currently working/processing
// This matches the ACTIVE_TASK_STATES constant in the backend
// Active task statuses - tasks that are currently working/processing or queued
// This matches the ACTIVE_TASK_STATES constant in the backend plus queued tasks
export const ACTIVE_TASK_STATUSES: Set<QueueStatus> = new Set([
"initializing", // task is starting up
"processing", // task is being processed
@@ -28,6 +28,7 @@ export const ACTIVE_TASK_STATUSES: Set<QueueStatus> = new Set([
"track_progress", // real-time track progress
"real-time", // real-time download progress
"retrying", // task is retrying after error
"queued", // task is queued and waiting to start
]);
/**