@nsshunt/stsrunnerframework 1.0.156 → 1.0.158

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.
@@ -1550,7 +1550,6 @@ class WorkerInstance {
1550
1550
  }
1551
1551
  if (removeList.length > 0) {
1552
1552
  setTimeout(() => {
1553
- __privateGet(this, _debug).call(this, chalk.grey(`WorkerInstance:#processLoopExecutor(): Removing runners from collection: [${removeList}]`));
1554
1553
  for (let i = 0; i < removeList.length; i++) {
1555
1554
  __privateGet(this, _runners)[removeList[i]].archived = true;
1556
1555
  if (__privateGet(this, _archiveDeleteTimeout) !== 0) {
@@ -1561,7 +1560,6 @@ class WorkerInstance {
1561
1560
  }
1562
1561
  }
1563
1562
  }
1564
- __privateGet(this, _debug).call(this, chalk.grey(`WorkerInstance:#processLoopExecutor(): Remaining Runner Count: [${Object.keys(__privateGet(this, _runners)).length}]`));
1565
1563
  setTimeout(__privateGet(this, _processLoopExecutor), 1e3);
1566
1564
  }, 100);
1567
1565
  } else {
@@ -1573,7 +1571,6 @@ class WorkerInstance {
1573
1571
  }
1574
1572
  });
1575
1573
  __publicField(this, "GetRandomInt", (max) => {
1576
- __privateGet(this, _debug).call(this, `GetRandomInt`);
1577
1574
  return Math.floor(Math.random() * Math.floor(max));
1578
1575
  });
1579
1576
  __publicField(this, "PostTelemetryById", (id) => {
@@ -1581,15 +1578,12 @@ class WorkerInstance {
1581
1578
  });
1582
1579
  __privateAdd(this, _SetMessagePort, (workerMessagePort) => {
1583
1580
  try {
1584
- __privateGet(this, _debug).call(this, `SetMessagePort`);
1585
1581
  __privateSet(this, _collectorCollectorPort, workerMessagePort.port);
1586
1582
  if (isNode) {
1587
1583
  __privateGet(this, _collectorCollectorPort).on("message", (data) => {
1588
- __privateGet(this, _debug).call(this, `collectorCollectorPort on('message'): ${JSON.stringify(data)}`);
1589
1584
  });
1590
1585
  } else {
1591
1586
  __privateGet(this, _collectorCollectorPort).addEventListener("message", (data) => {
1592
- __privateGet(this, _debug).call(this, `collectorCollectorPort addEventListener('message'): ${JSON.stringify(data.data)}`);
1593
1587
  });
1594
1588
  }
1595
1589
  const response = {
@@ -2022,10 +2016,8 @@ class WorkerInstance {
2022
2016
  const { state } = __privateGet(this, _runners)[runnerId].runner;
2023
2017
  if (state === IRunnerState.paused || state === IRunnerState.created) {
2024
2018
  const currentIteration = __privateGet(this, _GetRunnerIterationById).call(this, runnerId);
2025
- __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runnerId}]`)} ExecuteRunner(${currentIteration})`);
2026
2019
  result = await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.ExecuteRunner());
2027
2020
  const newIteration = __privateGet(this, _IncRunnerIterationById).call(this, runnerId);
2028
- __privateGet(this, _debug).call(this, `${chalk.magenta(` --> runner: [${runnerId}]`)} Next iteration number: [${newIteration}] for next Execute or Resume.`);
2029
2021
  __privateGet(this, _UpdateRunnerStateById).call(this, runnerId, IRunnerState.paused);
2030
2022
  }
2031
2023
  } else {
@@ -2044,9 +2036,7 @@ class WorkerInstance {
2044
2036
  if (__privateGet(this, _runners)[runnerId]) {
2045
2037
  const { state } = __privateGet(this, _runners)[runnerId].runner;
2046
2038
  if (state === IRunnerState.paused || state === IRunnerState.created || state === IRunnerState.running) {
2047
- __privateGet(this, _debug).call(this, chalk.cyan(`before: [${JSON.stringify(__privateGet(this, _GetRunnerOptionsById).call(this, runnerId))}]`));
2048
2039
  __privateGet(this, _SetRunnerOptionsById).call(this, runnerId, testRunnerTelemetryPayload.runner.options);
2049
- __privateGet(this, _debug).call(this, chalk.cyan(`after: [${JSON.stringify(__privateGet(this, _GetRunnerOptionsById).call(this, runnerId))}]`));
2050
2040
  result = await ((_a = __privateGet(this, _GetRunnerInstanceById).call(this, runnerId)) == null ? void 0 : _a.UpdateRunner(testRunnerTelemetryPayload.runner.options));
2051
2041
  }
2052
2042
  } else {
@@ -2066,47 +2056,35 @@ class WorkerInstance {
2066
2056
  __privateGet(this, _SetMessagePort).call(this, payloadMessage.payload);
2067
2057
  __privateSet(this, _options, payloadMessage.payload.options);
2068
2058
  __privateSet(this, _workerId, payloadMessage.payload.workerId);
2069
- __privateGet(this, _debug).call(this, `ProcessMessage::#workerId: [${__privateGet(this, _workerId)}]`);
2070
- __privateGet(this, _debug).call(this, `ProcessMessage::#options: [${JSON.stringify(__privateGet(this, _options))}]`);
2071
2059
  break;
2072
2060
  case eIWMessageCommands.AddRunner:
2073
- __privateGet(this, _debug).call(this, `ProcessMessage::AddRunner`);
2074
2061
  __privateGet(this, _AddRunner).call(this, payloadMessage.payload);
2075
2062
  break;
2076
2063
  case eIWMessageCommands.StartRunner:
2077
- __privateGet(this, _debug).call(this, `ProcessMessage::StartRunner`);
2078
2064
  __privateGet(this, _StartRunner).call(this, payloadMessage.payload);
2079
2065
  break;
2080
2066
  case eIWMessageCommands.StopRunner:
2081
- __privateGet(this, _debug).call(this, `ProcessMessage::StopRunner`);
2082
2067
  __privateGet(this, _StopRunner).call(this, payloadMessage.payload);
2083
2068
  break;
2084
2069
  case eIWMessageCommands.TerminateRunner:
2085
- __privateGet(this, _debug).call(this, `ProcessMessage::TerminateRunner`);
2086
2070
  __privateGet(this, _TerminateRunner).call(this, payloadMessage.payload);
2087
2071
  break;
2088
2072
  case eIWMessageCommands.PauseRunner:
2089
- __privateGet(this, _debug).call(this, `ProcessMessage::PauseRunner`);
2090
2073
  __privateGet(this, _PauseRunner).call(this, payloadMessage.payload);
2091
2074
  break;
2092
2075
  case eIWMessageCommands.ResumeRunner:
2093
- __privateGet(this, _debug).call(this, `ProcessMessage::ResumeRunner`);
2094
2076
  __privateGet(this, _ResumeRunner).call(this, payloadMessage.payload);
2095
2077
  break;
2096
2078
  case eIWMessageCommands.ResetRunner:
2097
- __privateGet(this, _debug).call(this, `ProcessMessage::ResetRunner`);
2098
2079
  __privateGet(this, _ResetRunner).call(this, payloadMessage.payload);
2099
2080
  break;
2100
2081
  case eIWMessageCommands.ExecuteRunner:
2101
- __privateGet(this, _debug).call(this, `ProcessMessage::ExecuteRunner`);
2102
2082
  __privateGet(this, _ExecuteRunner).call(this, payloadMessage.payload);
2103
2083
  break;
2104
2084
  case eIWMessageCommands.UpdateRunner:
2105
- __privateGet(this, _debug).call(this, `ProcessMessage::UpdateRunner`);
2106
2085
  __privateGet(this, _UpdateRunner).call(this, payloadMessage.payload);
2107
2086
  break;
2108
2087
  case eIWMessageCommands.GetRunners:
2109
- __privateGet(this, _debug).call(this, `ProcessMessage::GetRunners`);
2110
2088
  __privateGet(this, _PostRunnersToWorkerManager).call(this, eIWMessageCommands.GetRunners, payloadMessage);
2111
2089
  break;
2112
2090
  default:
@@ -2117,7 +2095,6 @@ class WorkerInstance {
2117
2095
  __privateGet(this, _error).call(this, error);
2118
2096
  }
2119
2097
  });
2120
- __privateGet(this, _debug).call(this, `constructor`);
2121
2098
  __privateGet(this, _processLoopExecutor).call(this);
2122
2099
  }
2123
2100
  get logger() {
@@ -2352,25 +2329,21 @@ class STSWorkerManager {
2352
2329
  }
2353
2330
  if (removeList.length > 0) {
2354
2331
  setTimeout(async () => {
2355
- __privateGet(this, _debug2).call(this, chalk.grey(`STSWorkerManager:#processLoopExecutor(): Removing runners from collection: [${JSON.stringify(removeList)}]`));
2356
2332
  for (let i = 0; i < removeList.length; i++) {
2357
2333
  const workerEx = __privateGet(this, _workersEx)[removeList[i].workerId];
2358
2334
  if (workerEx) {
2359
2335
  const runnerEx = workerEx.runnersEx[removeList[i].runnerId];
2360
2336
  if (runnerEx) {
2361
2337
  if (runnerEx.publishInstrumentController) {
2362
- __privateGet(this, _debug2).call(this, chalk.grey(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2363
2338
  runnerEx.publishInstrumentController.EndPublish();
2364
2339
  }
2365
2340
  if (runnerEx.state !== IRunnerState.terminated) {
2366
- __privateGet(this, _debug2).call(this, chalk.grey(`Archive runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2367
2341
  const runner = this.CreateRunnerCopy(runnerEx);
2368
2342
  __privateGet(this, _archiveList).push(runner);
2369
2343
  if (__privateGet(this, _archiveList).length > __privateGet(this, _options2).maxArchiveListLength) {
2370
2344
  __privateGet(this, _archiveList).shift();
2371
2345
  }
2372
2346
  } else {
2373
- __privateGet(this, _debug2).call(this, chalk.grey(`Runner has been terminated and will not be archived, runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2374
2347
  }
2375
2348
  runnerEx.archived = true;
2376
2349
  if (__privateGet(this, _archiveDeleteTimeout2) !== 0) {
@@ -2384,7 +2357,6 @@ class STSWorkerManager {
2384
2357
  }
2385
2358
  }
2386
2359
  for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
2387
- __privateGet(this, _debug2).call(this, chalk.grey(`STSWorkerManager:#processLoopExecutor(): Remaining runners from worker: [${workerEx.id}]: [${Object.keys(workerEx.runnersEx).length}]`));
2388
2360
  }
2389
2361
  setTimeout(__privateGet(this, _processLoopExecutor2), 1e3);
2390
2362
  }, 100);
@@ -2518,7 +2490,6 @@ class STSWorkerManager {
2518
2490
  if (__privateGet(this, _STSInstrumentController)) {
2519
2491
  __privateGet(this, _STSInstrumentController).LogEx(chalk.yellow(`pid: [${process.pid}] Creating new worker: [${stsWorkerEx.id}]`));
2520
2492
  }
2521
- __privateGet(this, _debug2).call(this, `AddWorker::workerThreadWorkerOptions: Worker ID: [${stsWorkerEx.id}] Options: [${stsWorkerEx.options}]`);
2522
2493
  if (stsWorkerEx.options.mocked) {
2523
2494
  stsWorkerEx.worker.SetPort({
2524
2495
  command: eIWMessageCommands.MessagePort,
@@ -2546,11 +2517,9 @@ class STSWorkerManager {
2546
2517
  if (isNode) {
2547
2518
  stsWorkerEx.worker.on("exit", (code) => {
2548
2519
  try {
2549
- __privateGet(this, _debug2).call(this, chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker exited with code: ${code}`));
2550
2520
  __privateGet(this, _EmitWorkerEvent).call(this, "exit", stsWorkerEx);
2551
2521
  if (__privateGet(this, _workersEx)[stsWorkerEx.id]) {
2552
2522
  delete __privateGet(this, _workersEx)[stsWorkerEx.id];
2553
- __privateGet(this, _debug2).call(this, chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker: [${stsWorkerEx.id}] has been removed from the worker collection.`));
2554
2523
  }
2555
2524
  } catch (error) {
2556
2525
  __privateGet(this, _error2).call(this, chalk.red(`STSWorkerManager:stsWorkerEx.worker.on(exit): Error: [${error}] Worker: [${stsWorkerEx.id}]`));
@@ -2571,7 +2540,6 @@ class STSWorkerManager {
2571
2540
  __privateGet(this, _EmitWorkerEvent).call(this, "onerror", stsWorkerEx);
2572
2541
  if (__privateGet(this, _workersEx)[stsWorkerEx.id]) {
2573
2542
  delete __privateGet(this, _workersEx)[stsWorkerEx.id];
2574
- __privateGet(this, _debug2).call(this, chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.onerror(error): Worker: [${stsWorkerEx.id}] has been removed from the worker collection.`));
2575
2543
  }
2576
2544
  } catch (error2) {
2577
2545
  __privateGet(this, _error2).call(this, chalk.red(`STSWorkerManager:stsWorkerEx.worker.onerror(error): Error: [${error2}] Worker: [${stsWorkerEx.id}]`));
@@ -2592,7 +2560,6 @@ class STSWorkerManager {
2592
2560
  const publishMessagePayload2 = data;
2593
2561
  switch (publishMessagePayload2.command) {
2594
2562
  case eIWMessageCommands.MessagePortResponse:
2595
- __privateGet(this, _debug2).call(this, `AddWorker:processMessage(): eIWMessageCommands.MessagePortResponse`);
2596
2563
  break;
2597
2564
  case eIWMessageCommands.InstrumentTelemetry:
2598
2565
  __privateGet(this, _ProcessTelemetry).call(this, stsWorkerEx, publishMessagePayload2.payload);
@@ -2635,7 +2602,6 @@ class STSWorkerManager {
2635
2602
  });
2636
2603
  }
2637
2604
  __privateGet(this, _workersEx)[stsWorkerEx.id] = stsWorkerEx;
2638
- __privateGet(this, _debug2).call(this, `Added worker: [${stsWorkerEx.id}]`);
2639
2605
  await Sleep(10);
2640
2606
  const worker = await this.GetWorker(stsWorkerEx.id);
2641
2607
  if (worker.id.localeCompare(stsWorkerEx.id) === 0) {
@@ -2657,7 +2623,6 @@ class STSWorkerManager {
2657
2623
  runnerEx.publishInstrumentController.LogEx(chalk.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}]`));
2658
2624
  }
2659
2625
  if (retVal) {
2660
- __privateGet(this, _debug2).call(this, chalk.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}] result: [${JSON.stringify(retVal)}]`));
2661
2626
  }
2662
2627
  return runnerEx;
2663
2628
  } catch (error) {
@@ -2668,7 +2633,6 @@ class STSWorkerManager {
2668
2633
  __privateAdd(this, _SetRunnerIntoWorker, async (workerEx, runnerEx) => {
2669
2634
  return new Promise((resolve, reject) => {
2670
2635
  try {
2671
- __privateGet(this, _debug2).call(this, `#SetRunnerIntoWorker`);
2672
2636
  const command = eIWMessageCommands.AddRunner;
2673
2637
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2674
2638
  const payload = {
@@ -2677,7 +2641,7 @@ class STSWorkerManager {
2677
2641
  };
2678
2642
  workerEx.messagePort.postMessage({ command, payload });
2679
2643
  } catch (error) {
2680
- __privateGet(this, _debug2).call(this, `#PauseRunner(): Error: [${error}]`);
2644
+ __privateGet(this, _error2).call(this, `#PauseRunner(): Error: [${error}]`);
2681
2645
  throw error;
2682
2646
  }
2683
2647
  });
@@ -2743,7 +2707,6 @@ class STSWorkerManager {
2743
2707
  runner: { ...runner }
2744
2708
  });
2745
2709
  __privateGet(this, _SyncRunnerData).call(this, runnerEx, runner);
2746
- __privateGet(this, _debug2).call(this, `STSWorkerManager:#RunnerStateChange(): Worker: [${workerEx.id}] Runner: [${runner.id}] Previous State: [${previousState}] State: [${runner.state}]`);
2747
2710
  __privateGet(this, _EmitRunnerEvent).call(this, "StateChange", workerEx, runner.id);
2748
2711
  }
2749
2712
  } catch (error) {
@@ -2822,22 +2785,18 @@ class STSWorkerManager {
2822
2785
  __privateAdd(this, _PostMessageToWorkerUsingDefaultChannel, (workerEx, command, payload, transferObject) => {
2823
2786
  try {
2824
2787
  if (transferObject) {
2825
- __privateGet(this, _debug2).call(this, `#PostMessageToWorker with transfer object`);
2826
2788
  workerEx.worker.postMessage({ command, payload }, [transferObject]);
2827
- __privateGet(this, _debug2).call(this, `#PostMessageToWorker with transfer object - done...`);
2828
2789
  } else {
2829
- __privateGet(this, _debug2).call(this, `#PostMessageToWorker`);
2830
2790
  workerEx.worker.postMessage({ command, payload });
2831
2791
  }
2832
2792
  } catch (error) {
2833
- __privateGet(this, _debug2).call(this, `PostMessageToWorkerUsingDefaultChannel(): Error: [${error}]`);
2793
+ __privateGet(this, _error2).call(this, `PostMessageToWorkerUsingDefaultChannel(): Error: [${error}]`);
2834
2794
  throw error;
2835
2795
  }
2836
2796
  });
2837
2797
  __privateAdd(this, _StartRunner2, async (workerEx, runnerEx) => {
2838
2798
  return new Promise((resolve, reject) => {
2839
2799
  try {
2840
- __privateGet(this, _debug2).call(this, `#StartRunner`);
2841
2800
  const command = eIWMessageCommands.StartRunner;
2842
2801
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2843
2802
  const payload = {
@@ -2846,7 +2805,7 @@ class STSWorkerManager {
2846
2805
  };
2847
2806
  workerEx.messagePort.postMessage({ command, payload });
2848
2807
  } catch (error) {
2849
- __privateGet(this, _debug2).call(this, `#StartRunner(): Error: [${error}]`);
2808
+ __privateGet(this, _error2).call(this, `#StartRunner(): Error: [${error}]`);
2850
2809
  throw error;
2851
2810
  }
2852
2811
  });
@@ -2854,7 +2813,6 @@ class STSWorkerManager {
2854
2813
  __privateAdd(this, _StopRunner2, async (workerEx, runnerEx) => {
2855
2814
  return new Promise((resolve, reject) => {
2856
2815
  try {
2857
- __privateGet(this, _debug2).call(this, `#StopRunner`);
2858
2816
  const command = eIWMessageCommands.StopRunner;
2859
2817
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2860
2818
  const payload = {
@@ -2863,7 +2821,7 @@ class STSWorkerManager {
2863
2821
  };
2864
2822
  workerEx.messagePort.postMessage({ command, payload });
2865
2823
  } catch (error) {
2866
- __privateGet(this, _debug2).call(this, `#StopRunner(): Error: [${error}]`);
2824
+ __privateGet(this, _error2).call(this, `#StopRunner(): Error: [${error}]`);
2867
2825
  throw error;
2868
2826
  }
2869
2827
  });
@@ -2871,7 +2829,6 @@ class STSWorkerManager {
2871
2829
  __privateAdd(this, _ResetRunner2, async (workerEx, runnerEx) => {
2872
2830
  return new Promise((resolve, reject) => {
2873
2831
  try {
2874
- __privateGet(this, _debug2).call(this, `#ResetRunner`);
2875
2832
  const command = eIWMessageCommands.ResetRunner;
2876
2833
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2877
2834
  const payload = {
@@ -2880,7 +2837,7 @@ class STSWorkerManager {
2880
2837
  };
2881
2838
  workerEx.messagePort.postMessage({ command, payload });
2882
2839
  } catch (error) {
2883
- __privateGet(this, _debug2).call(this, `#ResetRunner(): Error: [${error}]`);
2840
+ __privateGet(this, _error2).call(this, `#ResetRunner(): Error: [${error}]`);
2884
2841
  throw error;
2885
2842
  }
2886
2843
  });
@@ -2888,7 +2845,6 @@ class STSWorkerManager {
2888
2845
  __privateAdd(this, _ExecuteRunner2, async (workerEx, runnerEx) => {
2889
2846
  return new Promise((resolve, reject) => {
2890
2847
  try {
2891
- __privateGet(this, _debug2).call(this, `#ExecuteRunner`);
2892
2848
  const command = eIWMessageCommands.ExecuteRunner;
2893
2849
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2894
2850
  const payload = {
@@ -2897,7 +2853,7 @@ class STSWorkerManager {
2897
2853
  };
2898
2854
  workerEx.messagePort.postMessage({ command, payload });
2899
2855
  } catch (error) {
2900
- __privateGet(this, _debug2).call(this, `#ExecuteRunner(): Error: [${error}]`);
2856
+ __privateGet(this, _error2).call(this, `#ExecuteRunner(): Error: [${error}]`);
2901
2857
  throw error;
2902
2858
  }
2903
2859
  });
@@ -2905,7 +2861,6 @@ class STSWorkerManager {
2905
2861
  __privateAdd(this, _TerminateRunner2, async (workerEx, runnerEx) => {
2906
2862
  return new Promise((resolve, reject) => {
2907
2863
  try {
2908
- __privateGet(this, _debug2).call(this, `#TerminateRunner`);
2909
2864
  const command = eIWMessageCommands.TerminateRunner;
2910
2865
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2911
2866
  const payload = {
@@ -2914,7 +2869,7 @@ class STSWorkerManager {
2914
2869
  };
2915
2870
  workerEx.messagePort.postMessage({ command, payload });
2916
2871
  } catch (error) {
2917
- __privateGet(this, _debug2).call(this, `#PauseRunner(): Error: [${error}]`);
2872
+ __privateGet(this, _error2).call(this, `#PauseRunner(): Error: [${error}]`);
2918
2873
  throw error;
2919
2874
  }
2920
2875
  });
@@ -2922,7 +2877,6 @@ class STSWorkerManager {
2922
2877
  __privateAdd(this, _PauseRunner2, async (workerEx, runnerEx) => {
2923
2878
  return new Promise((resolve, reject) => {
2924
2879
  try {
2925
- __privateGet(this, _debug2).call(this, `#PauseRunner`);
2926
2880
  const command = eIWMessageCommands.PauseRunner;
2927
2881
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2928
2882
  const payload = {
@@ -2931,7 +2885,7 @@ class STSWorkerManager {
2931
2885
  };
2932
2886
  workerEx.messagePort.postMessage({ command, payload });
2933
2887
  } catch (error) {
2934
- __privateGet(this, _debug2).call(this, `#PauseRunner(): Error: [${error}]`);
2888
+ __privateGet(this, _error2).call(this, `#PauseRunner(): Error: [${error}]`);
2935
2889
  throw error;
2936
2890
  }
2937
2891
  });
@@ -2939,7 +2893,6 @@ class STSWorkerManager {
2939
2893
  __privateAdd(this, _ResumeRunner2, async (workerEx, runnerEx) => {
2940
2894
  return new Promise((resolve, reject) => {
2941
2895
  try {
2942
- __privateGet(this, _debug2).call(this, `#ResumeRunner`);
2943
2896
  const command = eIWMessageCommands.ResumeRunner;
2944
2897
  const messageId = __privateGet(this, _SetupCallbackMessage).call(this, resolve, reject, command);
2945
2898
  const payload = {
@@ -2948,7 +2901,7 @@ class STSWorkerManager {
2948
2901
  };
2949
2902
  workerEx.messagePort.postMessage({ command, payload });
2950
2903
  } catch (error) {
2951
- __privateGet(this, _debug2).call(this, `ResumeRunner(): Error: [${error}]`);
2904
+ __privateGet(this, _error2).call(this, `ResumeRunner(): Error: [${error}]`);
2952
2905
  throw error;
2953
2906
  }
2954
2907
  });
@@ -2956,7 +2909,6 @@ class STSWorkerManager {
2956
2909
  __privateAdd(this, _UpdateRunner2, async (workerEx, runnerEx, runnerOptions) => {
2957
2910
  return new Promise((resolve, reject) => {
2958
2911
  try {
2959
- __privateGet(this, _debug2).call(this, `#UpdateRunner`);
2960
2912
  if (runnerOptions.description) {
2961
2913
  runnerEx.options.description = runnerOptions.description;
2962
2914
  }
@@ -2980,7 +2932,7 @@ class STSWorkerManager {
2980
2932
  };
2981
2933
  workerEx.messagePort.postMessage({ command, payload });
2982
2934
  } catch (error) {
2983
- __privateGet(this, _debug2).call(this, `UpdateRunner(): Error: [${error}]`);
2935
+ __privateGet(this, _error2).call(this, `UpdateRunner(): Error: [${error}]`);
2984
2936
  throw error;
2985
2937
  }
2986
2938
  });
@@ -3053,16 +3005,14 @@ class STSWorkerManager {
3053
3005
  if (workerEx.worker) {
3054
3006
  setTimeout(() => {
3055
3007
  workerEx.worker.terminate();
3056
- __privateGet(this, _debug2).call(this, `Terminated worker: [${workerEx.id}]`);
3057
3008
  if (__privateGet(this, _workersEx)[workerEx.id]) {
3058
3009
  delete __privateGet(this, _workersEx)[workerEx.id];
3059
- __privateGet(this, _debug2).call(this, chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker: [${workerEx.id}] has been removed from the worker collection.`));
3060
3010
  }
3061
3011
  }, 500);
3062
3012
  }
3063
3013
  return retVal;
3064
3014
  } catch (error) {
3065
- __privateGet(this, _debug2).call(this, `TerminateWorker(): Error: [${error}]`);
3015
+ __privateGet(this, _error2).call(this, `TerminateWorker(): Error: [${error}]`);
3066
3016
  return [];
3067
3017
  }
3068
3018
  });
@@ -3103,6 +3053,7 @@ class STSWorkerManager {
3103
3053
  }
3104
3054
  });
3105
3055
  __privateAdd(this, _ProcessWorkerCommands, async (workerIds, command, runnerOptions) => {
3056
+ __privateGet(this, _debug2).call(this, `#ProcessWorkerCommands: workerIds: [${workerIds}] command: [${command}`);
3106
3057
  try {
3107
3058
  const promArray = [];
3108
3059
  const workers = Object.values(this.WorkersEx).filter((workerEx) => workerIds.length === 0 ? true : workerIds.includes(workerEx.id));
@@ -3153,6 +3104,7 @@ class STSWorkerManager {
3153
3104
  return __privateGet(this, _ProcessWorkerCommands).call(this, workerIds, "Update", runnerOptions);
3154
3105
  });
3155
3106
  __privateAdd(this, _ExecuteVariableCommandOnRunners, async (workerId, runnerIds, command, runnerOptions) => {
3107
+ __privateGet(this, _debug2).call(this, `#ExecuteVariableCommandOnRunners: workerId: [${workerId}] command: [${command} runnerIds: [${runnerIds}]`);
3156
3108
  try {
3157
3109
  if (__privateGet(this, _workersEx)[workerId]) {
3158
3110
  if (runnerIds.length === 0) {
@@ -3272,7 +3224,6 @@ class STSWorkerManager {
3272
3224
  __privateAdd(this, _PostMessageToWorkerGetRunners, async (workerEx, command) => {
3273
3225
  return new Promise((resolve, reject) => {
3274
3226
  try {
3275
- __privateGet(this, _debug2).call(this, `#PostMessageToWorkerGetRunners`);
3276
3227
  const messageId = v4();
3277
3228
  __privateGet(this, _messages)[messageId] = {
3278
3229
  timeout: setTimeout(() => {