Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 31, 2024
1 parent 58bbeec commit 6394687
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commands/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ export default class Stop<T extends typeof Stop> extends BaseCommand<T> {
let pids = processList.map(x => x.pid);

if (pids.length) {
this.log('got master pid %j', pids);
this.log('got master pid %j, list:', pids);
this.log('');
for (const item of processList) {
this.log('- %s: %o', item.pid, item.cmd);
}
this.log('');
this.killProcesses(pids);
// wait for 5s to confirm whether any worker process did not kill by master
await scheduler.wait(flags.timeout);
Expand Down

0 comments on commit 6394687

Please sign in to comment.