dcp-worker 4.6.3 → 4.6.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 +2 -2
- package/www/hud/small-dark.html +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-worker",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.5",
|
|
4
4
|
"description": "Node.js Worker for Distributive Compute Platform",
|
|
5
5
|
"main": "bin/dcp-worker",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"blessed": "0.1.81",
|
|
40
40
|
"blessed-contrib": "4.11.0",
|
|
41
41
|
"chalk": "4.1.2",
|
|
42
|
-
"dcp-client": "^5.8.
|
|
42
|
+
"dcp-client": "^5.8.9",
|
|
43
43
|
"kvin": "9.1.0",
|
|
44
44
|
"mux-net": "github:wesgarland/mux-net#e7f81800db4a84ec880026596f7ee68549a6d0f5",
|
|
45
45
|
"posix-getopt": "1.2.1",
|
package/www/hud/small-dark.html
CHANGED
|
@@ -125,8 +125,14 @@ async function init()
|
|
|
125
125
|
// WORKER EVENTS
|
|
126
126
|
//
|
|
127
127
|
|
|
128
|
-
// Fired when fetching work from the scheduler
|
|
128
|
+
// Fired when fetching work from the scheduler. When the fetch fails, the
|
|
129
|
+
// supervisor emits the Error itself instead of a fetch handle.
|
|
129
130
|
worker.on("fetch", ev => {
|
|
131
|
+
if (ev instanceof Error || !ev?.jobs) {
|
|
132
|
+
logger(`[worker.fetch] fetch failed: ${ev?.message || ev}; will retry`);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
|
|
130
136
|
const jobIds = Object.keys(ev.jobs);
|
|
131
137
|
|
|
132
138
|
if (jobIds.length === 0) {
|