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