tasks: fix active status

This commit is contained in:
Girish Ramakrishnan
2024-12-12 19:07:03 +01:00
parent 3be77fc634
commit d456f91921
2 changed files with 8 additions and 4 deletions

View File

@@ -83,6 +83,7 @@ function scheduleTask(appId, taskId, options, onFinished) {
return;
}
// percent 1 is relies on the tasks "active" flag to indicate task is queued but not started yet
tasks.update(taskId, { percent: 1, message: gStarted ? 'Queued' : 'Waiting for platform to initialize' });
gPendingTasks.push({ appId, taskId, options, onFinished });