From 43ebd2cdc21c98d9843c49f5673b7aa7d5d79e68 Mon Sep 17 00:00:00 2001 From: Christopher Tumminello Date: Sat, 10 Sep 2016 22:20:53 -0400 Subject: [PATCH] change to loosey comparison to allow queue to run without --tries --- src/Illuminate/Queue/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index 8a69f7e4a4a2..19492a436fe9 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -266,7 +266,7 @@ protected function handleJobException($connectionName, $job, WorkerOptions $opti */ protected function markJobAsFailedIfAlreadyExceedsMaxAttempts($connectionName, $job, $maxTries) { - if ($maxTries === 0 || $job->attempts() <= $maxTries) { + if ($maxTries == 0 || $job->attempts() <= $maxTries) { return; }