web/queue: fix total progress

the issue was caused by currentTasks state dependence in ProcessingQueue, now it's properly updated just like before :3
This commit is contained in:
wukko
2025-05-19 16:32:48 +06:00
parent b96b57c216
commit b6693cd4b2
3 changed files with 9 additions and 9 deletions

View File

@@ -64,7 +64,7 @@
const generateStatusText = ({ info, retrying, currentTasks }: StatusText) => {
switch (info.state) {
case "running":
const progress = getProgress(info);
const progress = getProgress(info, currentTasks);
const runningWorkers = info.pipeline.filter(w => w.workerId in currentTasks);
const running = [...new Set(runningWorkers.map(task => $t(`queue.state.running.${task.worker}`)))].join(', ');