@nsshunt/stsrunnerframework 1.0.85 → 1.0.87
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.
|
@@ -1921,9 +1921,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1921
1921
|
var _a;
|
|
1922
1922
|
try {
|
|
1923
1923
|
const runnerId = testRunnerTelemetryPayload.runner.id;
|
|
1924
|
-
__privateGet(this,
|
|
1925
|
-
|
|
1926
|
-
__privateGet(this,
|
|
1924
|
+
const currentIteration = __privateGet(this, _GetRunnerIterationById).call(this, runnerId);
|
|
1925
|
+
__privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runnerId}]`)} ExecuteRunner(${currentIteration})`);
|
|
1926
|
+
await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.Execute(currentIteration));
|
|
1927
|
+
const newIteration = __privateGet(this, _IncRunnerIterationById).call(this, runnerId);
|
|
1928
|
+
__privateGet(this, _debug).call(this, `${chalk.magenta(` --> runner: [${runnerId}]`)} Next iteration number: [${newIteration}] for next Execute or Resume.`);
|
|
1927
1929
|
await __privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
1928
1930
|
} catch (error) {
|
|
1929
1931
|
console.error(`#ExecuteRunner(): Error: [${error}]`);
|
|
@@ -2228,10 +2230,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2228
2230
|
__privateGet(this, _debug2).call(this, chalk.grey(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
|
|
2229
2231
|
runnerEx.publishInstrumentController.EndPublish();
|
|
2230
2232
|
}
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
__privateGet(this, _archiveList).
|
|
2233
|
+
if (runnerEx.state !== IRunnerState.terminated) {
|
|
2234
|
+
const runner = this.CreateRunnerCopy(runnerEx);
|
|
2235
|
+
__privateGet(this, _archiveList).push(runner);
|
|
2236
|
+
if (__privateGet(this, _archiveList).length > __privateGet(this, _options2).maxArchiveListLength) {
|
|
2237
|
+
__privateGet(this, _archiveList).shift();
|
|
2238
|
+
}
|
|
2235
2239
|
}
|
|
2236
2240
|
delete workerEx.runnersEx[removeList[i].runnerId];
|
|
2237
2241
|
}
|
|
@@ -2696,13 +2700,14 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2696
2700
|
try {
|
|
2697
2701
|
const retVal = __privateGet(this, _BroadcastCommandToAllRunners).call(this, workerEx, __privateGet(this, _TerminateRunner2));
|
|
2698
2702
|
if (workerEx.worker) {
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2703
|
+
setTimeout(() => {
|
|
2704
|
+
workerEx.worker.terminate();
|
|
2705
|
+
__privateGet(this, _debug2).call(this, `Terminated worker: [${workerEx.id}]`);
|
|
2706
|
+
if (__privateGet(this, _workersEx)[workerEx.id]) {
|
|
2707
|
+
delete __privateGet(this, _workersEx)[workerEx.id];
|
|
2708
|
+
console.log(chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker: [${workerEx.id}] has been removed from the worker collection.`));
|
|
2709
|
+
}
|
|
2710
|
+
}, 500);
|
|
2706
2711
|
}
|
|
2707
2712
|
return retVal;
|
|
2708
2713
|
} catch (error) {
|