@live-change/task-service 0.9.209 → 0.9.212
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 +4 -4
- package/task.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/task-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.212",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
26
|
-
"@live-change/relations-plugin": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.212",
|
|
26
|
+
"@live-change/relations-plugin": "^0.9.212"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "40268236c57d5f123c1e8f1815c310464d043d52"
|
|
29
29
|
}
|
package/task.ts
CHANGED
|
@@ -564,6 +564,7 @@ export default function task(definition:TaskDefinition, serviceDefinition) {
|
|
|
564
564
|
})
|
|
565
565
|
while(tasksToRestart.length > 0) {
|
|
566
566
|
logger.log("FOUND", tasksToRestart.length, "TASKS", definition.name, "TO RESTART")
|
|
567
|
+
console.log("FOUND", tasksToRestart.length, "TASKS", definition.name, "TO RESTART")
|
|
567
568
|
for(const task of tasksToRestart) {
|
|
568
569
|
logger.log("RESTARTING TASK", task)
|
|
569
570
|
const taskObject = { ...task, id: task.to ?? task.id }
|
|
@@ -601,7 +602,7 @@ export default function task(definition:TaskDefinition, serviceDefinition) {
|
|
|
601
602
|
limit: 25
|
|
602
603
|
})
|
|
603
604
|
}
|
|
604
|
-
},
|
|
605
|
+
}, 10000)
|
|
605
606
|
})
|
|
606
607
|
|
|
607
608
|
const Task = serviceDefinition.foreignModel('task', 'Task')
|