@nsshunt/ststestrunner 1.0.48 → 1.0.49
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/dist/ststestrunner.mjs
CHANGED
|
@@ -20222,14 +20222,14 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20222
20222
|
return retVal;
|
|
20223
20223
|
});
|
|
20224
20224
|
__publicField(this, "Stop", async () => {
|
|
20225
|
-
__privateGet(this, _EmitEvent).call(this, "Stopping", {});
|
|
20225
|
+
__privateGet(this, _EmitEvent).call(this, "Stopping ...", {});
|
|
20226
20226
|
__privateGet(this, _debug7).call(this, chalk$1.magenta(`Stop(): Stopping Service.`));
|
|
20227
20227
|
const workers = await __privateGet(this, _wm).GetWorkersSmall([]);
|
|
20228
|
-
__privateGet(this, _debug7).call(this, `Stop(): Workers to
|
|
20229
|
-
|
|
20230
|
-
__privateGet(this, _debug7).call(this, `Stop(): Workers terminated
|
|
20228
|
+
__privateGet(this, _debug7).call(this, `Stop(): Workers going to terminate ...`);
|
|
20229
|
+
await __privateGet(this, _wm).TerminateWorkers(Object.values(workers).map((worker) => worker.id));
|
|
20230
|
+
__privateGet(this, _debug7).call(this, `Stop(): Workers terminated`);
|
|
20231
20231
|
if (this.socket) {
|
|
20232
|
-
__privateGet(this, _debug7).call(this, `Stop(): Going to disconnect socket
|
|
20232
|
+
__privateGet(this, _debug7).call(this, `Stop(): Going to disconnect socket ...`);
|
|
20233
20233
|
this.socket.disconnect();
|
|
20234
20234
|
__privateGet(this, _debug7).call(this, `Stop(): Socket disconnected.`);
|
|
20235
20235
|
}
|