@nsshunt/stsrunnerframework 2.0.22 → 2.0.24
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/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/workerRegistry.d.ts.map +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __exportAll = (all, no_symbols) => {
|
|
11
11
|
let target = {};
|
|
12
12
|
for (var name in all) __defProp(target, name, {
|
|
@@ -1969,7 +1969,8 @@ var import_lodash_merge = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
1969
1969
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1970
1970
|
*/
|
|
1971
1971
|
function Stack(entries) {
|
|
1972
|
-
|
|
1972
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1973
|
+
this.size = data.size;
|
|
1973
1974
|
}
|
|
1974
1975
|
/**
|
|
1975
1976
|
* Removes all key-value entries from the stack.
|
|
@@ -4882,7 +4883,12 @@ var WorkerRegistry = class {
|
|
|
4882
4883
|
if (worker) {
|
|
4883
4884
|
const runnersMap = worker.GetAllRunnersExMap();
|
|
4884
4885
|
if (runnersMap) {
|
|
4885
|
-
if (runnersMap[runnerId])
|
|
4886
|
+
if (runnersMap[runnerId]) {
|
|
4887
|
+
delete runnersMap[runnerId];
|
|
4888
|
+
try {
|
|
4889
|
+
this.options.logger.debug(`DeleteRunner(): RunnerId: [${runnerId}] has been removed from this workerId: [${workerId}], Remaining Runners: [${Object.keys(worker.GetAllRunnersExMap()).length}]`);
|
|
4890
|
+
} catch (error) {}
|
|
4891
|
+
}
|
|
4886
4892
|
}
|
|
4887
4893
|
}
|
|
4888
4894
|
};
|
|
@@ -5858,7 +5864,7 @@ var WorkerCommandCoordinator = class {
|
|
|
5858
5864
|
* @returns Array of worker-level aggregated results.
|
|
5859
5865
|
*/
|
|
5860
5866
|
ExecuteWorkerCommands = async (workerIds, command, runnerOptions) => {
|
|
5861
|
-
this.options.logger.debug(`_ProcessWorkerCommands: workerIds: [${workerIds}]
|
|
5867
|
+
this.options.logger.debug(`_ProcessWorkerCommands: workerIds: [${workerIds}] command: [${command}]`);
|
|
5862
5868
|
try {
|
|
5863
5869
|
/**
|
|
5864
5870
|
* Promise array holding each worker's command execution result.
|
|
@@ -10231,7 +10237,7 @@ var WorkerManagerProxy = class extends SocketIoClient {
|
|
|
10231
10237
|
}));
|
|
10232
10238
|
};
|
|
10233
10239
|
_EmitStateChange = (runnerEx) => {
|
|
10234
|
-
this.#debug(chalk.rgb(10, 50, 200)(`_EmitStateChange(): ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
|
|
10240
|
+
this.#debug(chalk.rgb(10, 50, 200)(`WorkerManagerProxy:_EmitStateChange(): ==>> Runner State Change: WorkerId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
|
|
10235
10241
|
const stateChangeRetVal = {
|
|
10236
10242
|
eventRequestCommand: "StateChange",
|
|
10237
10243
|
type: IEventReturnValueBaseType.runner,
|
|
@@ -10244,7 +10250,7 @@ var WorkerManagerProxy = class extends SocketIoClient {
|
|
|
10244
10250
|
this.socket?.emit("StateChange", stateChangeRetVal);
|
|
10245
10251
|
};
|
|
10246
10252
|
_EmitTelemetry = (runnerEx) => {
|
|
10247
|
-
this.#debug(chalk.rgb(10, 50, 200)(`_EmitTelemetry(): ==>>
|
|
10253
|
+
this.#debug(chalk.rgb(10, 50, 200)(`WorkerManagerProxy:_EmitTelemetry(): ==>> WorkerId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`));
|
|
10248
10254
|
const telemetryRetVal = {
|
|
10249
10255
|
eventRequestCommand: "StateChange",
|
|
10250
10256
|
type: IEventReturnValueBaseType.runner,
|