mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修复spawn监听事件
This commit is contained in:
parent
d96206ef66
commit
a90e536403
|
@ -50,7 +50,8 @@ export default class ScheduleService {
|
|||
const startTime = dayjs();
|
||||
const cp = spawn(command, { shell: '/bin/bash' });
|
||||
|
||||
await callbacks.onStart?.(cp, startTime);
|
||||
// TODO:
|
||||
callbacks.onStart?.(cp, startTime);
|
||||
|
||||
cp.stdout.on('data', async (data) => {
|
||||
await callbacks.onLog?.(data.toString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user