@@ -153,7 +153,7 @@ public function startTemporalServer(
153153 !$ temporalStarted ? "Health check failed " : $ this ->temporalServerProcess ->getErrorOutput (),
154154 $ this ->temporalServerProcess ->getCommandLine (),
155155 ));
156- throw new \ RuntimeException ( ' Temporal server failed to start. ' );
156+ exit ( 1 );
157157 }
158158 $ this ->output ->writeln ('<info>done.</info> ' );
159159 }
@@ -184,7 +184,7 @@ public function startTemporalTestServer(int $commandTimeout = 10): void
184184 $ this ->temporalTestServerProcess ->getErrorOutput (),
185185 $ this ->temporalTestServerProcess ->getCommandLine (),
186186 ));
187- throw new \ RuntimeException ( ' Temporal Test server failed to start. ' );
187+ exit ( 1 );
188188 }
189189 $ this ->output ->writeln ('<info>done.</info> ' );
190190 }
@@ -195,7 +195,8 @@ public function startTemporalTestServer(int $commandTimeout = 10): void
195195 public function startRoadRunner (?string $ rrCommand = null , int $ commandTimeout = 10 , array $ envs = []): void
196196 {
197197 if (!$ this ->temporalServerProcess ?->isRunning() && !$ this ->temporalTestServerProcess ?->isRunning()) {
198- throw new \RuntimeException ('RoadRunner cannot be started if Temporal server is not running. ' );
198+ $ this ->output ->writeln ('RoadRunner cannot be started if Temporal server is not running. ' );
199+ exit (1 );
199200 }
200201 $ this ->roadRunnerProcess = new Process (
201202 command: $ rrCommand ? \explode (' ' , $ rrCommand ) : [$ this ->systemInfo ->rrExecutable , 'serve ' ],
@@ -219,7 +220,7 @@ public function startRoadRunner(?string $rrCommand = null, int $commandTimeout =
219220 $ this ->roadRunnerProcess ->getErrorOutput (),
220221 $ this ->roadRunnerProcess ->getCommandLine (),
221222 ));
222- throw new \ RuntimeException ( ' RoadRunner failed to start. ' );
223+ exit ( 1 );
223224 }
224225
225226 // wait for roadrunner to start
@@ -237,7 +238,7 @@ public function startRoadRunner(?string $rrCommand = null, int $commandTimeout =
237238 $ this ->roadRunnerProcess ->getErrorOutput (),
238239 $ this ->roadRunnerProcess ->getCommandLine (),
239240 ));
240- throw new \ RuntimeException ( ' RoadRunner failed to start. ' );
241+ exit ( 1 );
241242 }
242243
243244 $ this ->output ->writeln ('<info>done.</info> ' );
0 commit comments