Skip to content

Commit 95d32cf

Browse files
committed
Add queue prune-failed command
1 parent d15ae5f commit 95d32cf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

queues.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
- [Dealing With Failed Jobs](#dealing-with-failed-jobs)
3838
- [Cleaning Up After Failed Jobs](#cleaning-up-after-failed-jobs)
3939
- [Retrying Failed Jobs](#retrying-failed-jobs)
40+
- [Pruning Failed Jobs](#pruning-failed-jobs)
4041
- [Ignoring Missing Models](#ignoring-missing-models)
4142
- [Storing Failed Jobs In DynamoDB](#storing-failed-jobs-in-dynamodb)
4243
- [Failed Job Events](#failed-job-events)
@@ -1711,6 +1712,17 @@ To delete all of your failed jobs from the `failed_jobs` table, you may use the
17111712

17121713
php artisan queue:flush
17131714

1715+
<a name="pruning-failed-jobs"></a>
1716+
### Pruning Failed Jobs
1717+
1718+
To prune all records from the failed_jobs database table, you may use the `queue:prune-failed` Artisan Command:
1719+
1720+
php artisan queue:prune-failed
1721+
1722+
If necessary, you may pass the number of hours to retain jobs data.
1723+
1724+
php artisan queue:prune-failed --hours=48
1725+
17141726
<a name="ignoring-missing-models"></a>
17151727
### Ignoring Missing Models
17161728

0 commit comments

Comments
 (0)