Search

Laravel Artisan Queue Command: The queue:retry Command

December 7, 2016 —John Koster

The queue:retry command can be used to attempt to process the specified failed jobs again. The command is versatile in how it accepts the IDs of the jobs to retry.

All of the jobs can be retried by supplying all as the only argument:

1# Retry all jobs.
2php artisan queue:retry all

A single job can be retried like so:

1# Retry a single job.
2php artisan queue:retry 1

Likewise, multiple jobs can be retried by specifying the required jobs like so:

1# Retry failed jobs 1 and 3.
2php artisan queue:retry 1 3