@nsshunt/stsrunnerframework 1.0.157 → 1.0.158
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.
|
@@ -9,7 +9,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
-
var _collectorCollectorPort, _runners, _options, _workerId, _archiveDeleteTimeout, _logMessage, _debug, _error, _warn, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _PostRunnersToWorkerManager, _StartRunner, _StopRunnerByRunnerId, _StopRunner, _TerminateRunner, _SendRunnerCommandResponse, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateRunner, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _id, _messages, _archiveDeleteTimeout2, _logMessage2, _debug2, _error2, _warn2,
|
|
12
|
+
var _collectorCollectorPort, _runners, _options, _workerId, _archiveDeleteTimeout, _logMessage, _debug, _error, _warn, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _PostRunnersToWorkerManager, _StartRunner, _StopRunnerByRunnerId, _StopRunner, _TerminateRunner, _SendRunnerCommandResponse, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateRunner, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _id, _messages, _archiveDeleteTimeout2, _logMessage2, _debug2, _error2, _warn2, _processLoopExecutor2, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitWorkerEvent, _EmitRunnerEvent, _RunnerStateChange, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _StartRunner2, _StopRunner2, _ResetRunner2, _ExecuteRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _UpdateRunner2, _StartWorker, _StopWorker, _PauseWorker, _ResumeWorker, _ResetWorker, _ExecuteWorker, _UpdateOptionsWorker, _TerminateWorker, _ProcessWorkerCommands, _ExecuteVariableCommandOnRunners, _STSWorkerManager_instances, GetRunnersResponse_fn, ProcessRunnerResponse_fn, _SyncRunnerData, _SyncWorkerDataFromPayload, _SyncWorkerDataFromWorker, _SyncWorkerDataFromWorkers, _SetupCallbackMessage, _PostMessageToWorkerGetRunners;
|
|
13
13
|
import { defaultLogger, Sleep, ModelDelimeter } from "@nsshunt/stsutils";
|
|
14
14
|
import { Gauge } from "@nsshunt/stsobservability";
|
|
15
15
|
var eIWMessageCommands = /* @__PURE__ */ ((eIWMessageCommands2) => {
|
|
@@ -2313,7 +2313,6 @@ class STSWorkerManager {
|
|
|
2313
2313
|
__privateAdd(this, _debug2, (message) => __privateGet(this, _logMessage2).call(this, __privateGet(this, _options2).logger.debug, message));
|
|
2314
2314
|
__privateAdd(this, _error2, (error) => __privateGet(this, _logMessage2).call(this, __privateGet(this, _options2).logger.error, error));
|
|
2315
2315
|
__privateAdd(this, _warn2, (error) => __privateGet(this, _logMessage2).call(this, __privateGet(this, _options2).logger.warn, error));
|
|
2316
|
-
__privateAdd(this, _silly, (error) => __privateGet(this, _logMessage2).call(this, __privateGet(this, _options2).logger.silly, error));
|
|
2317
2316
|
__privateAdd(this, _processLoopExecutor2, async () => {
|
|
2318
2317
|
try {
|
|
2319
2318
|
const removeList = [];
|
|
@@ -2358,7 +2357,6 @@ class STSWorkerManager {
|
|
|
2358
2357
|
}
|
|
2359
2358
|
}
|
|
2360
2359
|
for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
|
|
2361
|
-
__privateGet(this, _silly).call(this, chalk.grey(`STSWorkerManager:#processLoopExecutor(): Remaining runners from worker: [${workerEx.id}]: [${Object.keys(workerEx.runnersEx).length}]`));
|
|
2362
2360
|
}
|
|
2363
2361
|
setTimeout(__privateGet(this, _processLoopExecutor2), 1e3);
|
|
2364
2362
|
}, 100);
|
|
@@ -3055,6 +3053,7 @@ class STSWorkerManager {
|
|
|
3055
3053
|
}
|
|
3056
3054
|
});
|
|
3057
3055
|
__privateAdd(this, _ProcessWorkerCommands, async (workerIds, command, runnerOptions) => {
|
|
3056
|
+
__privateGet(this, _debug2).call(this, `#ProcessWorkerCommands: workerIds: [${workerIds}] command: [${command}`);
|
|
3058
3057
|
try {
|
|
3059
3058
|
const promArray = [];
|
|
3060
3059
|
const workers = Object.values(this.WorkersEx).filter((workerEx) => workerIds.length === 0 ? true : workerIds.includes(workerEx.id));
|
|
@@ -3105,6 +3104,7 @@ class STSWorkerManager {
|
|
|
3105
3104
|
return __privateGet(this, _ProcessWorkerCommands).call(this, workerIds, "Update", runnerOptions);
|
|
3106
3105
|
});
|
|
3107
3106
|
__privateAdd(this, _ExecuteVariableCommandOnRunners, async (workerId, runnerIds, command, runnerOptions) => {
|
|
3107
|
+
__privateGet(this, _debug2).call(this, `#ExecuteVariableCommandOnRunners: workerId: [${workerId}] command: [${command} runnerIds: [${runnerIds}]`);
|
|
3108
3108
|
try {
|
|
3109
3109
|
if (__privateGet(this, _workersEx)[workerId]) {
|
|
3110
3110
|
if (runnerIds.length === 0) {
|
|
@@ -3360,7 +3360,6 @@ _logMessage2 = new WeakMap();
|
|
|
3360
3360
|
_debug2 = new WeakMap();
|
|
3361
3361
|
_error2 = new WeakMap();
|
|
3362
3362
|
_warn2 = new WeakMap();
|
|
3363
|
-
_silly = new WeakMap();
|
|
3364
3363
|
_processLoopExecutor2 = new WeakMap();
|
|
3365
3364
|
_SetRunnerIntoWorker = new WeakMap();
|
|
3366
3365
|
_ProcessTelemetry = new WeakMap();
|