Changesets · Branches · Tags · Compare
| Changeset | 1f4a56f3e948d4030669d729c854f705ec1c82b11e72289f15888fa80c3b0bec |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-27 22:16 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-27 22:16 -07:00 |
| Parents | 7114f117114e |
1 file changed
modified core/util/TokensBatchingService.ts +3 −0
| @@ -85,6 +85,9 @@ | ||
| 85 | 85 | this.flushTimer = setInterval(() => { |
| 86 | 86 | this.flushAllBatches(); |
| 87 | 87 | }, this.FLUSH_INTERVAL_MS); |
| 88 | + // Allow the process to exit if this timer is the only thing keeping it alive | |
| 89 | + // This prevents test hangs and allows graceful shutdown | |
| 90 | + this.flushTimer.unref(); | |
| 88 | 91 | } |
| 89 | 92 | |
| 90 | 93 | private flushAllBatches(): void { |