@nsshunt/stsrunnerframework 1.0.115 → 1.0.116

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,21 @@ 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
+ workerId: runnerEx.workerId,
3237
+ workerManagerId: __privateGet(this, _id)
3238
+ };
3239
+ return retVal;
3240
+ } catch (error) {
3241
+ __privateGet(this, _error2).call(this, `CreateRunnerCopy(): Error: [${error}]`);
3242
+ throw error;
3243
+ }
3244
+ }
3217
3245
  CreateWorkerCopy(workerEx) {
3218
3246
  try {
3219
3247
  const { id, options, runnersEx, workerManagerId } = workerEx;
@@ -3232,6 +3260,23 @@ class STSWorkerManager {
3232
3260
  throw error;
3233
3261
  }
3234
3262
  }
3263
+ CreateWorkerCopySmall(workerEx) {
3264
+ try {
3265
+ const { id, options, runnersEx, workerManagerId } = workerEx;
3266
+ const workerCopy = {
3267
+ id,
3268
+ runners: {},
3269
+ workerManagerId
3270
+ };
3271
+ for (const [, runnerEx] of Object.entries(runnersEx)) {
3272
+ workerCopy.runners[runnerEx.id] = this.CreateRunnerCopySmall(runnerEx);
3273
+ }
3274
+ return workerCopy;
3275
+ } catch (error) {
3276
+ __privateGet(this, _error2).call(this, `CreateWorkerCopySmall(): Error: [${error}]`);
3277
+ throw error;
3278
+ }
3279
+ }
3235
3280
  get id() {
3236
3281
  return __privateGet(this, _id);
3237
3282
  }