December 7, 2016 —John Koster
The queue:flush
command is used to clear the log of failed queue jobs. It accepts no arguments or options and can be called like so:
1# Flush all the failed queue jobs.2php artisan queue:flush
This command will remove all entries from the failed_jobs
database table. It accomplishes this by calling the flush
method on the configured Illuminate\Queue\Failed\FailedJobProviderInterface
instance (this interface is bound to the key queue.failed
in the service container; this returns an instance of Illuminate\Queue\Failed\DatabaseFailedJobProvider
by default). The following PHP method call is equivalent:
1// Flush all the failed queue jobs.2app('queue.failed')->flush();
∎
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.