mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-18 14:08:51 +00:00
web: parallel queue item processing
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
This commit is contained in:
@@ -86,13 +86,12 @@ export function pipelineTaskDone(id: string, workerId: string, file: File) {
|
||||
schedule();
|
||||
}
|
||||
|
||||
export function itemRunning(id: string, workerId: string) {
|
||||
export function itemRunning(id: string) {
|
||||
update(queueData => {
|
||||
const data = queueData[id] as CobaltQueueItemRunning;
|
||||
|
||||
if (data) {
|
||||
data.state = 'running';
|
||||
data.runningWorker = workerId;
|
||||
data.completedWorkers ??= new Set();
|
||||
data.pipelineResults ??= [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user