@nsshunt/stsrunnerframework 1.0.137 → 1.0.138
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.
|
@@ -1820,7 +1820,11 @@ class WorkerInstance {
|
|
|
1820
1820
|
if (executionProfile) {
|
|
1821
1821
|
const { iterations, duration, delayBetweenIterations, pauseOnComplete } = executionProfile;
|
|
1822
1822
|
if (iterations > 0) {
|
|
1823
|
-
|
|
1823
|
+
if (pauseOnComplete === true) {
|
|
1824
|
+
cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) <= iterations;
|
|
1825
|
+
} else {
|
|
1826
|
+
cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) < iterations;
|
|
1827
|
+
}
|
|
1824
1828
|
} else if (duration > 0) {
|
|
1825
1829
|
cont = ((/* @__PURE__ */ new Date()).getTime() - startLoop.getTime()) / 1e3 < duration;
|
|
1826
1830
|
}
|
|
@@ -1848,6 +1852,7 @@ class WorkerInstance {
|
|
|
1848
1852
|
if (pauseOnComplete === true) {
|
|
1849
1853
|
await ((_b = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _b.PauseRunner());
|
|
1850
1854
|
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
1855
|
+
ExecuteLoop();
|
|
1851
1856
|
} else {
|
|
1852
1857
|
await ((_c = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _c.Completed());
|
|
1853
1858
|
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.completed);
|