From b89f89cb0f5e15f7a0857772cd5eef52c82f2cdc Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 22 Aug 2023 12:26:44 -0700 Subject: [PATCH] CLI-1121: Fix sql imports --- src/Helpers/LocalMachineHelper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Helpers/LocalMachineHelper.php b/src/Helpers/LocalMachineHelper.php index e6fd68db5..39008f2a8 100644 --- a/src/Helpers/LocalMachineHelper.php +++ b/src/Helpers/LocalMachineHelper.php @@ -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(),