@nsshunt/stsrunnerframework 1.0.115 → 1.0.117

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.
@@ -2392,6 +2392,19 @@ class STSWorkerManager {
2392
2392
  throw error;
2393
2393
  }
2394
2394
  });
2395
+ __publicField(this, "GetWorkersSmall", async () => {
2396
+ try {
2397
+ await __privateGet(this, _SyncWorkerDataFromWorkers).call(this);
2398
+ const retVal = {};
2399
+ for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
2400
+ retVal[workerEx.id] = this.CreateWorkerCopySmall(workerEx);
2401
+ }
2402
+ return retVal;
2403
+ } catch (error) {
2404
+ __privateGet(this, _error2).call(this, `GetWorkers(): Error: [${error}]`);
2405
+ throw error;
2406
+ }
2407
+ });
2395
2408
  __publicField(this, "GetArchiveList", (tag) => {
2396
2409
  try {
2397
2410
  return __privateGet(this, _archiveList).filter((runner) => tag.localeCompare("") === 0 ? true : runner.options.tag.localeCompare(tag) === 0);
@@ -3214,6 +3227,19 @@ class STSWorkerManager {
3214
3227
  throw error;
3215
3228
  }
3216
3229
  }
3230
+ CreateRunnerCopySmall(runnerEx) {
3231
+ try {
3232
+ const retVal = {
3233
+ id: runnerEx.id,
3234
+ iteration: runnerEx.iteration,
3235
+ state: runnerEx.state
3236
+ };
3237
+ return retVal;
3238
+ } catch (error) {
3239
+ __privateGet(this, _error2).call(this, `CreateRunnerCopy(): Error: [${error}]`);
3240
+ throw error;
3241
+ }
3242
+ }
3217
3243
  CreateWorkerCopy(workerEx) {
3218
3244
  try {
3219
3245
  const { id, options, runnersEx, workerManagerId } = workerEx;
@@ -3232,6 +3258,22 @@ class STSWorkerManager {
3232
3258
  throw error;
3233
3259
  }
3234
3260
  }
3261
+ CreateWorkerCopySmall(workerEx) {
3262
+ try {
3263
+ const { id, options, runnersEx, workerManagerId } = workerEx;
3264
+ const workerCopy = {
3265
+ id,
3266
+ runners: {}
3267
+ };
3268
+ for (const [, runnerEx] of Object.entries(runnersEx)) {
3269
+ workerCopy.runners[runnerEx.id] = this.CreateRunnerCopySmall(runnerEx);
3270
+ }
3271
+ return workerCopy;
3272
+ } catch (error) {
3273
+ __privateGet(this, _error2).call(this, `CreateWorkerCopySmall(): Error: [${error}]`);
3274
+ throw error;
3275
+ }
3276
+ }
3235
3277
  get id() {
3236
3278
  return __privateGet(this, _id);
3237
3279
  }