Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected function causedByLostConnection(Exception $e)
'SSL connection has been closed unexpectedly',
'Error writing data to the connection',
'Resource deadlock avoided',
'Transaction() on null',
]);
}
}
4 changes: 4 additions & 0 deletions src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ protected function getNextJob($connection, $queue)
$this->stopWorkerIfLostConnection($e);
} catch (Throwable $e) {
$this->exceptions->report(new FatalThrowableError($e));

$this->stopWorkerIfLostConnection($e);
}
}

Expand All @@ -267,6 +269,8 @@ protected function runJob($job, $connectionName, WorkerOptions $options)
$this->stopWorkerIfLostConnection($e);
} catch (Throwable $e) {
$this->exceptions->report(new FatalThrowableError($e));

$this->stopWorkerIfLostConnection($e);
}
}

Expand Down