feat(deploy): implement KEDA ScaledJob and scale-to-zero On-Demand transcoding

This commit is contained in:
yiling
2026-10-18 22:35:11 +08:00
parent 6d823ef0df
commit a16a1515d7
20 changed files with 845 additions and 255 deletions
+4 -1
View File
@@ -109,6 +109,7 @@ async function run() {
}
workflowService.start(listenQueues)
workflowService.startStaleTaskRecovery()
const isProd = process.env.NODE_ENV === 'production'
@@ -206,8 +207,10 @@ async function run() {
console.log(`🚀 Server running at ${server.url}`)
const shutdown = () => {
const shutdown = async () => {
console.log('\nShutting down gracefully...')
workflowService.stopStaleTaskRecovery()
await workflowService.shutdownWorkers().catch(() => {})
assetService.stopCleanupJob()
server.stop(true)
process.exit(0)