feat: implement graceful shutdown process for bot
- Added graceful shutdown functionality to handle SIGINT, SIGTERM, uncaught exceptions, and unhandled promise rejections. - Integrated stopRecording and pause functionality during shutdown. - Enhanced logging for shutdown steps and error handling. - Updated package.json to include pino-pretty for improved logging output.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"@types/express": "^5.0.6",
|
||||
"@types/fluent-ffmpeg": "^2.1.28",
|
||||
"@types/ws": "^8.18.1",
|
||||
"pino-pretty": "^10.3.1",
|
||||
"vitest": "latest"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user