dcp-worker 4.5.2 → 4.5.3

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.
Files changed (2) hide show
  1. package/bin/dcp-worker +4 -1
  2. package/package.json +1 -1
package/bin/dcp-worker CHANGED
@@ -893,6 +893,9 @@ async function handleUnhandled(error)
893
893
  * Cause the process to exit ASAP, but take the time to gracefully unhook loggers so that log messages
894
894
  * make it out. Gives up and exits forcefully after cleanupTimeout seconds.
895
895
  *
896
+ * @note *** This function must not emit output on stdout, or it can interfere with parsing information
897
+ * *** via the --show= command-line options.
898
+ *
896
899
  * @param {number} exitCode - the desired exit code of the dcp-worker process
897
900
  * @returns {Promise} - a promise which never resolves, can be used to "block" execution of the current
898
901
  * "thread" while the console and loggers are being unhooked.
@@ -931,7 +934,7 @@ async function cleanupThenExit(exitCode)
931
934
  worker.stop(true); /* toggle internal worker state so it won't surprise us by starting sandboxes */
932
935
  }
933
936
 
934
- console.info(' ! begin shutdown, exit code =', exitCode);
937
+ console.warn(' ! begin shutdown, exit code =', exitCode);
935
938
  const p$workerShutdownTasks = Promise.all([
936
939
  require('../lib/p2p-shared').shutdown(),
937
940
  utils.noteWorkerShutdown(worker),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-worker",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "Node.js Worker for Distributive Compute Platform",
5
5
  "main": "bin/dcp-worker",
6
6
  "keywords": [