class
Illuminate
/
Queue
/
Console
/
RetryCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
RetryCommand
Extends
Properties
protected
$signature string
The console command signature.
Default: 'queue:retry
{id?* : The ID of the failed job or "all" to retry all jobs}
{--queue= : Retry all of the failed jobs for the specified queue}
{--range=* : Range of job IDs (numeric) to be retried}'
protected
$description string
The console command description.
Default: 'Retry a failed queue job'
Methods
public
handle ( ) : void
Execute the console command.
protected
getJobIds ( ) : array
Get the job IDs to be retried.
protected
getJobIdsByQueue ( $queue ) : array
Get the job IDs by queue, if applicable.
Parameters
- $queue string
protected
getJobIdsByRanges ( array $ranges ) : array
Get the job IDs ranges, if applicable.
Parameters
- $ranges array
protected
retryJob ( $job ) : void
Retry the queue job.
Parameters
- $job stdClass
protected
resetAttempts ( $payload ) : string
Reset the payload attempts.
Parameters
- $payload string
protected
refreshRetryUntil ( $payload ) : string
Refresh the "retry until" timestamp for the job.
Parameters
- $payload string