@vorplex/core 0.0.41 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,19 +93,18 @@ export class Task extends Subscribable {
93
93
  }
94
94
  }
95
95
  getStatus() {
96
- let failed;
97
- if (this.isCancelled())
98
- return TaskStatus.Cancelled;
96
+ if (this.status !== TaskStatus.Busy)
97
+ return this.status;
99
98
  for (const task of this.tasks) {
100
99
  const status = task.getStatus();
101
100
  if (status === TaskStatus.Failed)
102
- failed = true;
101
+ return TaskStatus.Failed;
103
102
  if (status === TaskStatus.Busy)
104
103
  return TaskStatus.Busy;
105
104
  }
106
- if (failed)
107
- return TaskStatus.Failed;
108
- return this.status;
105
+ if (this.isCancelled())
106
+ return TaskStatus.Cancelled;
107
+ return TaskStatus.Busy;
109
108
  }
110
109
  hasWarning() {
111
110
  for (const log of this.logs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vorplex/core",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [