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

Method stopApp

packages/server/src/index.ts:372–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370 }
371
372 async stopApp() {
373 try {
374 this.sseStreamer.stopHeartbeat()
375 const removePromises: any[] = []
376 removePromises.push(this.telemetry.flush())
377 if (this.queueManager) {
378 removePromises.push(this.redisSubscriber.disconnect())
379 }
380 await Promise.all(removePromises)
381 } catch (e) {
382 logger.error(`❌[server]: Flowise Server shut down error: ${e}`)
383 }
384 }
385}
386
387let serverApp: App | undefined

Callers 1

stopProcessMethod · 0.80

Calls 3

stopHeartbeatMethod · 0.80
flushMethod · 0.80
disconnectMethod · 0.45

Tested by

no test coverage detected