MCPcopy
hub / github.com/ether/etherpad / startCleanup

Method startCleanup

src/node/db/SessionStore.ts:57–59  ·  view source on GitHub ↗

* Start periodic cleanup of expired/stale sessions from the database. * Uses chained setTimeout (not setInterval) to prevent overlapping runs.

()

Source from the content-addressed store, hash-verified

55 * Uses chained setTimeout (not setInterval) to prevent overlapping runs.
56 */
57 startCleanup() {
58 this._scheduleCleanup(5000); // First run 5s after startup.
59 }
60
61 _scheduleCleanup(delay: number) {
62 this._cleanupTimer = setTimeout(async () => {

Callers 2

SessionStore.tsFile · 0.80
express.tsFile · 0.80

Calls 1

_scheduleCleanupMethod · 0.95

Tested by

no test coverage detected