@vorplex/core 0.0.49 → 0.0.51
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
|
|
97
|
-
return
|
|
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
|
|
109
|
+
return this.status;
|
|
108
110
|
}
|
|
109
111
|
hasWarning() {
|
|
110
112
|
for (const log of this.logs) {
|