移除tee,添加config错误日志捕获,合并并发任务日志

This commit is contained in:
hanhh
2021-08-16 12:16:40 +08:00
parent 7a02fe0d8e
commit 4929fa0440
4 changed files with 34 additions and 13 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ export default class CronService {
cmdStr = `${cmdStr} now`;
}
const cp = spawn(cmdStr, { shell: '/bin/bash' });
const cp = spawn(cmdStr, { shell: '/bin/bash', detached: true });
this.cronDb.update(
{ _id },
{ $set: { status: CrontabStatus.running, pid: cp.pid } },