From ab62f037fe7d2b611722801f73f2541a1c7553ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Kr=C3=BCss?= Date: Tue, 31 Jul 2018 17:03:02 -0500 Subject: [PATCH] return early if eval call failed (read timeout) (#25020) --- src/Illuminate/Queue/RedisQueue.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/RedisQueue.php b/src/Illuminate/Queue/RedisQueue.php index 7bda32fb8d3f..5608e7a7a47e 100644 --- a/src/Illuminate/Queue/RedisQueue.php +++ b/src/Illuminate/Queue/RedisQueue.php @@ -162,7 +162,11 @@ public function pop($queue = null) { $this->migrate($prefixed = $this->getQueue($queue)); - list($job, $reserved) = $this->retrieveNextJob($prefixed); + if (empty($nextJob = $this->retrieveNextJob($prefixed))) { + return; + } + + list($job, $reserved) = $nextJob; if ($reserved) { return new RedisJob(