dcp-worker 4.2.6 → 4.3.0
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/bin/dcp-evaluator-manager +15 -1
- package/bin/dcp-worker +1 -1
- package/package.json +3 -3
|
@@ -128,6 +128,13 @@ async function listenForConnections(config)
|
|
|
128
128
|
|
|
129
129
|
server.listen({ host: hostaddr, port: config.net.port }, function daemonReady() {
|
|
130
130
|
console.log('Listening for connections on', server._connectionKey);
|
|
131
|
+
if (Number(config.net.port) === 0)
|
|
132
|
+
{
|
|
133
|
+
console.log('Using dynamic port', server.address().port);
|
|
134
|
+
// Send info by IPC, if the spawn is setup for that. Probably don't need to try/catch.
|
|
135
|
+
if (process.send)
|
|
136
|
+
try { process.send(server.address().port); } catch (e) {}
|
|
137
|
+
}
|
|
131
138
|
console.log('Evaluator command is', config.proc, config.argv);
|
|
132
139
|
});
|
|
133
140
|
}
|
|
@@ -538,7 +545,7 @@ function odRequire(moduleId)
|
|
|
538
545
|
async function main()
|
|
539
546
|
{
|
|
540
547
|
const parser = new getopt.BasicParser('h(help)P:(prefix)H:p:d:(disable-monitor)l:(max-load)r:(rate)'
|
|
541
|
-
+ 'Li:as:(signal)T:(loadavg-type)f:(pidfile)', process.argv);
|
|
548
|
+
+ 'Li:as:(signal)T:(loadavg-type)f:(pidfile)n(no-pidfile)', process.argv);
|
|
542
549
|
var option;
|
|
543
550
|
|
|
544
551
|
if (dcpConfig.evaluator.listen)
|
|
@@ -651,6 +658,13 @@ async function main()
|
|
|
651
658
|
case 'f':
|
|
652
659
|
{
|
|
653
660
|
daemonConfig.pidfile = option.optarg;
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
case 'n':
|
|
665
|
+
{
|
|
666
|
+
daemonConfig.pidfile = false;
|
|
667
|
+
break;
|
|
654
668
|
}
|
|
655
669
|
}
|
|
656
670
|
}
|
package/bin/dcp-worker
CHANGED
|
@@ -208,7 +208,7 @@ function processCliOptsPhase1(argv, operatingMode)
|
|
|
208
208
|
};
|
|
209
209
|
const evaluatorOptions = {
|
|
210
210
|
hostname: dcpConfig.evaluator?.location?.hostname,
|
|
211
|
-
port: dcpConfig.evaluator?.location?.
|
|
211
|
+
port: dcpConfig.evaluator?.location?.port,
|
|
212
212
|
};
|
|
213
213
|
const remainArgv = argv.slice(0, 2);
|
|
214
214
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-worker",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Node.js Worker for Distributive Compute Platform",
|
|
5
5
|
"main": "bin/dcp-worker",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"blessed": "0.1.81",
|
|
40
40
|
"blessed-contrib": "4.11.0",
|
|
41
41
|
"chalk": "^4.1.0",
|
|
42
|
-
"dcp-client": "^5.
|
|
43
|
-
"kvin": "^
|
|
42
|
+
"dcp-client": "^5.2.0",
|
|
43
|
+
"kvin": "^9.0.0",
|
|
44
44
|
"posix-getopt": "^1.2.1",
|
|
45
45
|
"semver": "^7.3.8",
|
|
46
46
|
"syslog-client": "1.1.1",
|