Skip to content

Commit 83f95ea

Browse files
authored
Merge pull request #36 from lukewaite/set_exception_handler
Set the exception handler on the Worker
2 parents 29092ba + cbec28d commit 83f95ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Console/QueueWorkBatchCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ protected function runJob()
7676

7777
$job = $connection->getJobById($jobId);
7878

79+
$this->worker->setDaemonExceptionHandler(
80+
$this->laravel['Illuminate\Contracts\Debug\ExceptionHandler']
81+
);
82+
7983
// If we're able to pull a job off of the stack, we will process it and
8084
// then immediately return back out.
8185
if (!is_null($job)) {

0 commit comments

Comments
 (0)