Commit f2d9b59 1 parent be679d3 commit f2d9b59 Copy full SHA for f2d9b59
File tree 1 file changed +6
-3
lines changed
src/Illuminate/Queue/Console
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class RetryCommand extends Command
18
18
*/
19
19
protected $ signature = 'queue:retry
20
20
{id?* : The ID of the failed job or "all" to retry all jobs}
21
- {--queue= : Name of the queue to be retried }
21
+ {--queue= : Retry all of the failed jobs for the specified queue }
22
22
{--range=* : Range of job IDs (numeric) to be retried} ' ;
23
23
24
24
/**
@@ -64,10 +64,13 @@ protected function getJobIds()
64
64
}
65
65
66
66
if ($ queue = $ this ->option ('queue ' )) {
67
- $ ids = collect ($ this ->laravel ['queue.failer ' ]->all ())->where ('queue ' , $ queue )->pluck ('id ' )->toArray ();
67
+ $ ids = collect ($ this ->laravel ['queue.failer ' ]->all ())
68
+ ->where ('queue ' , $ queue )
69
+ ->pluck ('id ' )
70
+ ->toArray ();
68
71
69
72
if (count ($ ids ) === 0 ) {
70
- $ this ->error ("Unable to find failed jobs in a queue named [ {$ queue }]. " );
73
+ $ this ->error ("Unable to find failed jobs for queue [ {$ queue }]. " );
71
74
}
72
75
73
76
return $ ids ;
You can’t perform that action at this time.
0 commit comments