From f729d114178b6d7c6d8b064c215e3b7949deff4f Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Fri, 22 Jan 2021 13:03:38 +0200 Subject: [PATCH] fix worker --delay option --- src/Illuminate/Queue/Console/WorkCommand.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Illuminate/Queue/Console/WorkCommand.php b/src/Illuminate/Queue/Console/WorkCommand.php index c8c815eefe24..ff092197f53a 100644 --- a/src/Illuminate/Queue/Console/WorkCommand.php +++ b/src/Illuminate/Queue/Console/WorkCommand.php @@ -124,13 +124,9 @@ protected function runWorker($connection, $queue) */ protected function gatherWorkerOptions() { - $backoff = $this->hasOption('backoff') - ? $this->option('backoff') - : $this->option('delay'); - return new WorkerOptions( $this->option('name'), - $backoff, + max($this->option('backoff'), $this->option('delay')), $this->option('memory'), $this->option('timeout'), $this->option('sleep'),