diff --git a/src/Illuminate/Queue/Console/RetryCommand.php b/src/Illuminate/Queue/Console/RetryCommand.php index a1452dbf2c40..f32caf49fd85 100644 --- a/src/Illuminate/Queue/Console/RetryCommand.php +++ b/src/Illuminate/Queue/Console/RetryCommand.php @@ -18,7 +18,7 @@ class RetryCommand extends Command */ protected $signature = 'queue:retry {id?* : The ID of the failed job or "all" to retry all jobs} - {--queue= : Name of the queue to be retried} + {--queue= : Retry all of the failed jobs for the specified queue} {--range=* : Range of job IDs (numeric) to be retried}'; /** @@ -64,10 +64,13 @@ protected function getJobIds() } if ($queue = $this->option('queue')) { - $ids = collect($this->laravel['queue.failer']->all())->where('queue', $queue)->pluck('id')->toArray(); + $ids = collect($this->laravel['queue.failer']->all()) + ->where('queue', $queue) + ->pluck('id') + ->toArray(); if (count($ids) === 0) { - $this->error("Unable to find failed jobs in a queue named [{$queue}]."); + $this->error("Unable to find failed jobs for queue [{$queue}]."); } return $ids;