Skip to content

Commit

Permalink
Detect failtal error
Browse files Browse the repository at this point in the history
  • Loading branch information
freestream committed Aug 22, 2020
1 parent 1b4b224 commit 445110c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Console/Command/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ protected function _validateProcesses(array $processes) : array
{
foreach ($processes as $i => $process) {
if (!$this->_isProcessRunning($process)) {
$code = $process->getExitCode();

if (255 === $code) {
$process->getLabour()->reschedule();
}

unset($processes[$i]);
}
}
Expand Down

0 comments on commit 445110c

Please sign in to comment.