Commit 1ec2f5c
fix: Avoid Filtering Failed Jobs Timestamp in Memory (#193)
* fix: Avoid Filtering Failed Jobs Timestamp in Memory
To display queue metrics, Vapor loads all `failed_jobs` and filters the period (1m, 5m, 10m, 30m, 1h, 24h, 7d, 30d) in memory.
When the failed_jobs table has a large number of rows, usually as a result of not pruning failed_jobs on a regular-basis, it would cause Queue Metrics to fail with HTTP status 502.
`getTable` was made public via laravel/framework#56384
Note: In another PR, we could also filter all the other filter options (id, queue, query)
* Update VaporQueueListFailedCommand.php
---------
Co-authored-by: Taylor Otwell <taylorotwell@gmail.com>1 parent 72121dc commit 1ec2f5c
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| |||
0 commit comments