MCPcopy Create free account
hub / github.com/altic-dev/Pilot / startAutoCleanup

Method startAutoCleanup

src/lib/session-store.ts:136–145  ·  view source on GitHub ↗

* Start automatic cleanup of stale sessions

()

Source from the content-addressed store, hash-verified

134 * Start automatic cleanup of stale sessions
135 */
136 private startAutoCleanup(): void {
137 if (this.cleanupInterval) {
138 return;
139 }
140
141 // Run cleanup every 5 minutes
142 this.cleanupInterval = setInterval(() => {
143 this.cleanupStaleSessions();
144 }, 5 * 60 * 1000);
145 }
146
147 /**
148 * Clean up sessions that haven't been active for 1 hour

Callers 1

constructorMethod · 0.95

Calls 1

cleanupStaleSessionsMethod · 0.95

Tested by

no test coverage detected