MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / cleanup

Method cleanup

packages/components/src/handler.ts:731–738  ·  view source on GitHub ↗
(maxAge: number = 3600000)

Source from the content-addressed store, hash-verified

729
730 // Keep this as backup for orphaned instances
731 static cleanup(maxAge: number = 3600000): void {
732 const now = Date.now()
733 for (const [chatId, instance] of AnalyticHandler.instances) {
734 if (now - instance.createdAt > maxAge) {
735 AnalyticHandler.resetInstance(chatId)
736 }
737 }
738 }
739
740 /**
741 * Helper method to end an OpenTelemetry span with output, token usage, and model name attributes.

Callers

nothing calls this directly

Calls 1

resetInstanceMethod · 0.80

Tested by

no test coverage detected