mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复spawn监听事件
This commit is contained in:
1 parent
d96206ef66
commit
a90e536403
1 file changed
+2
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user