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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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 === "COMPLETED" || tsk.state === "FAULTED" || tsk.state === "CANCELED") {
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)