feat(M01-C): 建立MySQL异步任务基础

This commit is contained in:
Codex
2026-06-18 10:20:39 +08:00
parent a2d578f73b
commit 2b90d1f101
15 changed files with 609 additions and 30 deletions
+12
View File
@@ -11,6 +11,18 @@ module.exports = {
QIPAI_API_HOST: '127.0.0.1',
QIPAI_API_PORT: '3001'
}
},
{
name: 'qipai-worker',
cwd: '/opt/apps/qipai-backend/current/backend',
script: 'dist/tasks/worker.js',
instances: 1,
exec_mode: 'fork',
restart_delay: 3000,
kill_timeout: 10000,
env: {
NODE_ENV: 'production'
}
}
]
};