@nsshunt/stsrunnerframework 1.0.135 → 1.0.137
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 +9 -4
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +9 -4
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/commonTypes.d.ts +1 -0
- package/types/commonTypes.d.ts.map +1 -1
- package/types/workerInstance.d.ts.map +1 -1
|
@@ -1813,12 +1813,12 @@ class WorkerInstance {
|
|
|
1813
1813
|
await Sleep(0);
|
|
1814
1814
|
const startLoop = /* @__PURE__ */ new Date();
|
|
1815
1815
|
const ExecuteLoop = async () => {
|
|
1816
|
-
var _a2, _b;
|
|
1816
|
+
var _a2, _b, _c;
|
|
1817
1817
|
try {
|
|
1818
1818
|
let cont = true;
|
|
1819
1819
|
const executionProfile = __privateGet(this, _GetRunnerExecutionProfileById).call(this, runnerId);
|
|
1820
1820
|
if (executionProfile) {
|
|
1821
|
-
const { iterations, duration, delayBetweenIterations } = executionProfile;
|
|
1821
|
+
const { iterations, duration, delayBetweenIterations, pauseOnComplete } = executionProfile;
|
|
1822
1822
|
if (iterations > 0) {
|
|
1823
1823
|
cont = __privateGet(this, _GetRunnerIterationById).call(this, runnerId) < iterations;
|
|
1824
1824
|
} else if (duration > 0) {
|
|
@@ -1845,8 +1845,13 @@ class WorkerInstance {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
} else {
|
|
1848
|
-
|
|
1849
|
-
|
|
1848
|
+
if (pauseOnComplete === true) {
|
|
1849
|
+
await ((_b = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _b.PauseRunner());
|
|
1850
|
+
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
|
|
1851
|
+
} else {
|
|
1852
|
+
await ((_c = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _c.Completed());
|
|
1853
|
+
__privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.completed);
|
|
1854
|
+
}
|
|
1850
1855
|
}
|
|
1851
1856
|
} else {
|
|
1852
1857
|
__privateGet(this, _warn).call(this, `#StartRunner:ExecuteLoop(): Cannot get execution profile for runner: [${runnerId}]`);
|