@vorplex/core 0.0.49 → 0.0.50

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,8 +93,10 @@ export class Task extends Subscribable {
93
93
  }
94
94
  }
95
95
  getStatus() {
96
- if (this.status !== TaskStatus.Busy)
97
- return this.status;
96
+ if (this.status === TaskStatus.Failed)
97
+ return TaskStatus.Failed;
98
+ if (this.status === TaskStatus.Cancelled)
99
+ return TaskStatus.Cancelled;
98
100
  for (const task of this.tasks) {
99
101
  const status = task.getStatus();
100
102
  if (status === TaskStatus.Failed)
@@ -104,7 +106,7 @@ export class Task extends Subscribable {
104
106
  }
105
107
  if (this.isCancelled())
106
108
  return TaskStatus.Cancelled;
107
- return TaskStatus.Busy;
109
+ return this.status;
108
110
  }
109
111
  hasWarning() {
110
112
  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.49",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [