Laravel - Queues - Retrying Failed Jobs

To view all of the failed jobs that have been inserted into your failed_jobs database table, you may use the queue:failed Artisan command:

    
    php artisan queue:failed
	

The queue:failed command will list the job ID, connection, queue, failure time, and other information about the job. The job ID may be used to retry the failed job. For instance, to retry a failed job that has an ID of ce7bb17c-cdd8-41f0-a8ec-7b4fef4e5ece, issue the following command:

    
    php artisan queue:retry ce7bb17c-cdd8-41f0-a8ec-7b4fef4e5ece
	

If necessary, you may pass multiple IDs to the command:

    
    php artisan queue:retry ce7bb17c-cdd8-41f0-a8ec-7b4fef4e5ece 91401d2c-0784-4f43-824c-34f94a33c24d
	

You may also retry all of the failed jobs for a particular queue:

    
    php artisan queue:retry --queue=name
	

To retry all of your failed jobs, execute the queue:retry command and pass all as the ID:

    
    php artisan queue:retry all
	

If you would like to delete a failed job, you may use the queue:forget command:

    
    php artisan queue:forget 91401d2c-0784-4f43-824c-34f94a33c24d
	
When using Horizon, you should use the horizon:forget command to delete a failed job instead of the queue:forget command.

To delete all of your failed jobs from the failed_jobs table, you may use the queue:flush command:

    
    php artisan queue:flush