feat(deploy): add shumai-transcode docker image and k8s autoscaling example with garage s3

This commit is contained in:
yiling
2026-10-18 13:41:21 +08:00
parent 66e399fea3
commit 8aa49e76c0
16 changed files with 793 additions and 30 deletions
+16
View File
@@ -17,6 +17,22 @@ async function run() {
console.log('🚀 Starting Transcode Worker...')
await workflowService.startWorkers(TaskQueueTranscode)
let isShuttingDown = false
const shutdown = async () => {
if (isShuttingDown) return
isShuttingDown = true
console.log('Shutting down Transcode Worker gracefully...')
try {
await workflowService.shutdownWorkers()
} catch (err) {
console.error('Error during Transcode Worker shutdown:', err)
}
process.exit(0)
}
process.on('SIGINT', shutdown)
process.on('SIGTERM', shutdown)
}
handleDaemonCommands('shumai-transcode', run).catch((err) => {