MCPcopy Index your code
hub / github.com/simstudioai/sim / onExit

Function onExit

apps/sim/lib/monitoring/metrics.ts:77–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 if (!handlersRegistered) {
76 handlersRegistered = true
77 const onExit = async () => {
78 await flushHostedKeyMetrics()
79 }
80 process.once('SIGTERM', onExit)
81 process.once('SIGINT', onExit)
82 process.once('beforeExit', onExit)

Callers

nothing calls this directly

Calls 1

flushHostedKeyMetricsFunction · 0.85

Tested by

no test coverage detected