Skip to content

Commit 7d7f1ef

Browse files
committed
Worker handles process runtime exception
1 parent 2ef8c65 commit 7d7f1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace yii\queue\cli;
99

10-
use Symfony\Component\Process\Exception\ProcessTimedOutException;
10+
use Symfony\Component\Process\Exception\RuntimeException as ProcessRuntimeException;
1111
use Symfony\Component\Process\Process;
1212
use yii\console\Controller;
1313
use yii\console\ExitCode;
@@ -181,7 +181,7 @@ protected function handleMessage($id, $message, $ttr, $attempt)
181181
$this->stdout($buffer);
182182
}
183183
});
184-
} catch (ProcessTimedOutException $error) {
184+
} catch (ProcessRuntimeException $error) {
185185
$job = $this->queue->serializer->unserialize($message);
186186
return $this->queue->handleError($id, $job, $ttr, $attempt, $error);
187187
}

0 commit comments

Comments
 (0)