修复typescript类型错误

This commit is contained in:
whyour
2022-08-26 17:34:38 +08:00
parent d2590edab3
commit 529880642f
4 changed files with 5 additions and 11 deletions
+1 -2
View File
@@ -79,13 +79,12 @@ export default class ScheduleService {
cp.on('exit', async (code, signal) => {
this.logger.info(
`${command} pid: ${cp.pid} exit ${code} signal ${signal}`,
`任务 ${command} 进程id: ${cp.pid} 退出,退出码 ${code}`,
);
});
cp.on('close', async (code) => {
const endTime = dayjs();
this.logger.info(`${command} pid: ${cp.pid} closed ${code}`);
await callbacks.onEnd?.(
cp,
endTime,