@nsshunt/stsrunnerframework 2.0.2 → 2.0.4
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.
|
@@ -5612,6 +5612,7 @@ var ArchiveManager = class {
|
|
|
5612
5612
|
* This is stored so the loop can be stopped later via {@link Terminate}.
|
|
5613
5613
|
*/
|
|
5614
5614
|
timeout;
|
|
5615
|
+
archiveDelTimeout;
|
|
5615
5616
|
/**
|
|
5616
5617
|
* Construct a new archive manager.
|
|
5617
5618
|
*
|
|
@@ -5729,7 +5730,7 @@ var ArchiveManager = class {
|
|
|
5729
5730
|
* This removes the runner from the active runtime graph after a delay.
|
|
5730
5731
|
*/
|
|
5731
5732
|
if (this.archiveDeleteTimeout !== 0) {
|
|
5732
|
-
|
|
5733
|
+
this.archiveDelTimeout = setTimeout(() => {
|
|
5733
5734
|
try {
|
|
5734
5735
|
this.options.workerRegistry.DeleteRunner(workerEx.id, removeList[i].runnerId);
|
|
5735
5736
|
} catch (error) {
|
|
@@ -5739,7 +5740,7 @@ var ArchiveManager = class {
|
|
|
5739
5740
|
/**
|
|
5740
5741
|
* In Node.js, unref the timer so it does not keep the process alive.
|
|
5741
5742
|
*/
|
|
5742
|
-
|
|
5743
|
+
this.archiveDelTimeout.unref();
|
|
5743
5744
|
}
|
|
5744
5745
|
}
|
|
5745
5746
|
}
|
|
@@ -5822,6 +5823,10 @@ var ArchiveManager = class {
|
|
|
5822
5823
|
this.options.logger.debug(`ArchiveManager:Terminate() - this.timeout cleared ...`);
|
|
5823
5824
|
clearTimeout(this.timeout);
|
|
5824
5825
|
}
|
|
5826
|
+
if (this.archiveDelTimeout) {
|
|
5827
|
+
this.options.logger.debug(`ArchiveManager:Terminate() - this.archiveDelTimeout cleared ...`);
|
|
5828
|
+
clearTimeout(this.archiveDelTimeout);
|
|
5829
|
+
}
|
|
5825
5830
|
};
|
|
5826
5831
|
};
|
|
5827
5832
|
//#endregion
|