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:
@@ -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(', ');
|
||||
|
||||
Reference in New Issue
Block a user