@nsshunt/stsrunnerframework 1.0.76 → 1.0.78
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/stsrunnerframework.mjs +14 -4
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +14 -4
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +2 -0
- package/types/commonTypes.d.ts.map +1 -1
- package/types/workerManager.d.ts +1 -0
- package/types/workerManager.d.ts.map +1 -1
|
@@ -13,7 +13,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
13
13
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
14
14
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
15
15
|
|
|
16
|
-
var _collectorCollectorPort, _runners, _options, _workerId, _debug, _error, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _StartRunner, _StopRunnerByRunnerById, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _processLoopExecutor2, _debug2, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitEvent, _RunnerStateChange, _RemoveRunnerFromCollection, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _BroadcastCommandToAllRunners, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _BroadcastUpdateCommandToAllRunners, _UpdateOptionsWorker, _TerminateWorker, _UpdateOptions2;
|
|
16
|
+
var _collectorCollectorPort, _runners, _options, _workerId, _debug, _error, _processLoopExecutor, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _StartRunner, _StopRunnerByRunnerById, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options2, _STSInstrumentController, _telemetryProcessor, _archiveList, _id, _processLoopExecutor2, _debug2, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitEvent, _RunnerStateChange, _RemoveRunnerFromCollection, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _BroadcastCommandToAllRunners, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _BroadcastUpdateCommandToAllRunners, _UpdateOptionsWorker, _TerminateWorker, _UpdateOptions2;
|
|
17
17
|
const URI_BASE_VUEUTILS = "/";
|
|
18
18
|
const STS_RF_RES_PREFIX = "STS_R_RF_";
|
|
19
19
|
const STS_RF_RES_ENT_PREFIX = "STS_RE_RF_";
|
|
@@ -2027,6 +2027,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2027
2027
|
__privateAdd(this, _STSInstrumentController, null);
|
|
2028
2028
|
__privateAdd(this, _telemetryProcessor, null);
|
|
2029
2029
|
__privateAdd(this, _archiveList, []);
|
|
2030
|
+
__privateAdd(this, _id);
|
|
2030
2031
|
__privateAdd(this, _processLoopExecutor2, async () => {
|
|
2031
2032
|
const removeList = [];
|
|
2032
2033
|
for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
|
|
@@ -2090,6 +2091,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2090
2091
|
const workerId = v4();
|
|
2091
2092
|
const stsWorkerEx = {
|
|
2092
2093
|
id: workerId,
|
|
2094
|
+
workerManagerId: __privateGet(this, _id),
|
|
2093
2095
|
worker: workerFactory.createWorkerThreadWorker(),
|
|
2094
2096
|
messagePort: port1,
|
|
2095
2097
|
options: workerOptions,
|
|
@@ -2286,6 +2288,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2286
2288
|
const runnerEx = {
|
|
2287
2289
|
id: runnerId,
|
|
2288
2290
|
workerId: workerEx.id,
|
|
2291
|
+
workerManagerId: __privateGet(this, _id),
|
|
2289
2292
|
state: IRunnerState.created,
|
|
2290
2293
|
iteration: 0,
|
|
2291
2294
|
publishInstrumentController: __privateGet(this, _STSInstrumentController) ? __privateGet(this, _STSInstrumentController).AddPublishInstrumentController(asyncRunnerContext) : void 0,
|
|
@@ -2551,6 +2554,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2551
2554
|
}
|
|
2552
2555
|
return await Promise.all(promArray);
|
|
2553
2556
|
});
|
|
2557
|
+
__privateSet(this, _id, v4());
|
|
2554
2558
|
if (options) {
|
|
2555
2559
|
__privateSet(this, _options2, options);
|
|
2556
2560
|
} else {
|
|
@@ -2570,7 +2574,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2570
2574
|
iteration: runnerEx.iteration,
|
|
2571
2575
|
options: { ...runnerEx.options },
|
|
2572
2576
|
state: runnerEx.state,
|
|
2573
|
-
workerId: runnerEx.workerId
|
|
2577
|
+
workerId: runnerEx.workerId,
|
|
2578
|
+
workerManagerId: __privateGet(this, _id)
|
|
2574
2579
|
};
|
|
2575
2580
|
}
|
|
2576
2581
|
CreateRunnerCopy(runnerEx) {
|
|
@@ -2581,17 +2586,21 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2581
2586
|
return retVal;
|
|
2582
2587
|
}
|
|
2583
2588
|
CreateWorkerCopy(workerEx) {
|
|
2584
|
-
const { id, options, runnersEx } = workerEx;
|
|
2589
|
+
const { id, options, runnersEx, workerManagerId } = workerEx;
|
|
2585
2590
|
const workerCopy = {
|
|
2586
2591
|
id,
|
|
2587
2592
|
options: { ...options },
|
|
2588
|
-
runners: {}
|
|
2593
|
+
runners: {},
|
|
2594
|
+
workerManagerId
|
|
2589
2595
|
};
|
|
2590
2596
|
for (const [, runnerEx] of Object.entries(runnersEx)) {
|
|
2591
2597
|
workerCopy.runners[runnerEx.id] = this.CreateRunnerCopy(runnerEx);
|
|
2592
2598
|
}
|
|
2593
2599
|
return workerCopy;
|
|
2594
2600
|
}
|
|
2601
|
+
get id() {
|
|
2602
|
+
return __privateGet(this, _id);
|
|
2603
|
+
}
|
|
2595
2604
|
get Workers() {
|
|
2596
2605
|
const retVal = {};
|
|
2597
2606
|
for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
|
|
@@ -2617,6 +2626,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2617
2626
|
_STSInstrumentController = new WeakMap();
|
|
2618
2627
|
_telemetryProcessor = new WeakMap();
|
|
2619
2628
|
_archiveList = new WeakMap();
|
|
2629
|
+
_id = new WeakMap();
|
|
2620
2630
|
_processLoopExecutor2 = new WeakMap();
|
|
2621
2631
|
_debug2 = new WeakMap();
|
|
2622
2632
|
_SetRunnerIntoWorker = new WeakMap();
|