()
| 132 | } |
| 133 | |
| 134 | stop(): void { |
| 135 | this.stopped = true; |
| 136 | if (this.checkInterval) { |
| 137 | clearInterval(this.checkInterval); |
| 138 | this.checkInterval = null; |
| 139 | } |
| 140 | this.tracked.clear(); |
| 141 | this.inFlightPromises.clear(); |
| 142 | this.tickInFlight = false; |
| 143 | log.info("AgentStatusService stopped"); |
| 144 | } |
| 145 | |
| 146 | private async runTick(): Promise<void> { |
| 147 | if (this.stopped || this.tickInFlight) return; |