[Insight] exit() and die() functions should be avoided - in CronWorker.php, line 38
Closed this issue · 0 comments
kduma commented
This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.
{
$connection = $this->manager->connection($connectionName);
$job = $this->getNextJob($connection, $queue);
if (is_null($job))
{
exit;
}
$this->process(
$this->manager->getName($connectionName), $job, $maxTries, $delay
);
}
Posted from SensioLabsInsight