ywana-core8 0.1.4 → 0.1.5
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.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +3 -1
package/package.json
CHANGED
package/src/incubator/task.js
CHANGED
@@ -37,6 +37,8 @@ export const TaskContextProvider = (props) => {
|
|
37
37
|
const taskID = taskIDs[i]
|
38
38
|
const tsk = await task(taskID)
|
39
39
|
|
40
|
+
console.log("Task Listener", taskID, tsk.state, tsk.percentage, tsk.description)
|
41
|
+
|
40
42
|
if (!tsk) {
|
41
43
|
console.log("Task not found", taskID)
|
42
44
|
removeListener(taskID)
|
@@ -44,7 +46,7 @@ export const TaskContextProvider = (props) => {
|
|
44
46
|
continue
|
45
47
|
}
|
46
48
|
|
47
|
-
if (tsk.state === "
|
49
|
+
if (tsk.state === "FAULTED" || tsk.state === "CANCELED") {
|
48
50
|
console.log("Task finished", taskID, task.state)
|
49
51
|
removeListener(taskID)
|
50
52
|
console.log("Listener removed", taskID)
|