Skip to content

Commit

Permalink
CLI-1121: Fix sql imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Aug 22, 2023
1 parent 9f165fe commit b89f89c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Helpers/LocalMachineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ private function executeProcess(Process $process, callable $callback = NULL, ?bo
};
}
$process->start();
$process->wait($callback);
set_error_handler(fn () => NULL);
while ($process->isRunning()) {
$process->checkTimeout();
usleep(1000);
}
restore_error_handler();

$this->logger->notice('Command: {command} [Exit: {exit}]', [
'command' => $process->getCommandLine(),
Expand Down

0 comments on commit b89f89c

Please sign in to comment.