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