@nsshunt/stsrunnerframework 2.0.2 → 2.0.3

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.
@@ -5618,6 +5618,7 @@ ${runnerId}`,
5618
5618
  * This is stored so the loop can be stopped later via {@link Terminate}.
5619
5619
  */
5620
5620
  timeout;
5621
+ archiveDelTimeout;
5621
5622
  /**
5622
5623
  * Construct a new archive manager.
5623
5624
  *
@@ -5735,7 +5736,7 @@ ${runnerId}`,
5735
5736
  * This removes the runner from the active runtime graph after a delay.
5736
5737
  */
5737
5738
  if (this.archiveDeleteTimeout !== 0) {
5738
- const archiveDelTimeout = setTimeout(() => {
5739
+ this.archiveDelTimeout = setTimeout(() => {
5739
5740
  try {
5740
5741
  this.options.workerRegistry.DeleteRunner(workerEx.id, removeList[i].runnerId);
5741
5742
  } catch (error) {
@@ -5745,7 +5746,7 @@ ${runnerId}`,
5745
5746
  /**
5746
5747
  * In Node.js, unref the timer so it does not keep the process alive.
5747
5748
  */
5748
- if (import_browser.default) archiveDelTimeout.unref();
5749
+ if (import_browser.default) this.archiveDelTimeout.unref();
5749
5750
  }
5750
5751
  }
5751
5752
  }
@@ -5828,6 +5829,10 @@ ${runnerId}`,
5828
5829
  this.options.logger.debug(`ArchiveManager:Terminate() - this.timeout cleared ...`);
5829
5830
  clearTimeout(this.timeout);
5830
5831
  }
5832
+ if (this.archiveDelTimeout) {
5833
+ this.options.logger.debug(`ArchiveManager:Terminate() - this.archiveDelTimeout cleared ...`);
5834
+ clearTimeout(this.archiveDelTimeout);
5835
+ }
5831
5836
  };
5832
5837
  };
5833
5838
  //#endregion