Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7e6f476

Browse files
amirhshokritaylorotwell
andauthored
[12.x] Clarify behavior of --hours in queue:flush command (#10773)
* improve queue:flush docs * Update queues.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 1224d08 commit 7e6f476

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎queues.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,12 @@ To delete all of your failed jobs from the `failed_jobs` table, you may use the
23662366
php artisan queue:flush
23672367
```
23682368

2369+
The `queue:flush` command removes all failed job records from your queue, no matter how old the failed job is. You may use the `--hours` option to only delete jobs that failed a certain number of hours ago or earlier:
2370+
2371+
```shell
2372+
php artisan queue:flush --hours=48
2373+
```
2374+
23692375
<a name="ignoring-missing-models"></a>
23702376
### Ignoring Missing Models
23712377

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /