@nsshunt/stsrunnerframework 1.0.118 → 1.0.119
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.
|
@@ -2395,9 +2395,10 @@ class STSWorkerManager {
|
|
|
2395
2395
|
__publicField(this, "GetWorkersSmall", async () => {
|
|
2396
2396
|
try {
|
|
2397
2397
|
await __privateGet(this, _SyncWorkerDataFromWorkers).call(this);
|
|
2398
|
-
const retVal =
|
|
2398
|
+
const retVal = [];
|
|
2399
|
+
retVal.push(__privateGet(this, _id));
|
|
2399
2400
|
for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
|
|
2400
|
-
retVal
|
|
2401
|
+
retVal.push(this.CreateWorkerCopySmall(workerEx));
|
|
2401
2402
|
}
|
|
2402
2403
|
return retVal;
|
|
2403
2404
|
} catch (error) {
|
|
@@ -3263,13 +3264,16 @@ class STSWorkerManager {
|
|
|
3263
3264
|
}
|
|
3264
3265
|
CreateWorkerCopySmall(workerEx) {
|
|
3265
3266
|
try {
|
|
3266
|
-
const
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3267
|
+
const workerCopy = [];
|
|
3268
|
+
workerCopy.push(workerEx.id);
|
|
3269
|
+
workerCopy.push(Object.entries(workerEx.runnersEx).length);
|
|
3270
|
+
for (const [, runnerEx] of Object.entries(workerEx.runnersEx)) {
|
|
3271
|
+
const runnerCopy = [];
|
|
3272
|
+
runnerCopy.push(runnerEx.id);
|
|
3273
|
+
runnerCopy.push(runnerEx.iteration);
|
|
3274
|
+
runnerCopy.push(runnerEx.state);
|
|
3275
|
+
runnerCopy.push(runnerEx.options.plan);
|
|
3276
|
+
workerCopy.push(runnerCopy);
|
|
3273
3277
|
}
|
|
3274
3278
|
return workerCopy;
|
|
3275
3279
|
} catch (error) {
|