Skip to content

Commit

Permalink
[9.x] Apply force flag when necessary (#44862)
Browse files Browse the repository at this point in the history
* fix: #44861 apply force flag when necessary

* style: quote
  • Loading branch information
JamesHemery authored Nov 7, 2022
1 parent 3c5bdfd commit 4846e5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Queue/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ protected function createCommand($connection, $queue, ListenerOptions $options)
"--memory={$options->memory}",
"--sleep={$options->sleep}",
"--tries={$options->maxTries}",
$options->force ? '--force' : null,
], function ($value) {
return ! is_null($value);
});
Expand Down

0 comments on commit 4846e5f

Please sign in to comment.