Skip to content

Commit

Permalink
fix worker --delay option (#35991)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored Jan 22, 2021
1 parent 6e6d699 commit 6b01aea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 6b01aea

Please sign in to comment.