Commit 422005d
fix(metrics): correct Redis key pattern in overview aggregation
The overview endpoint was returning zero counts because scanKeys()
couldn't find any matching keys due to incorrect pattern.
Problem:
- Used pattern: queue_metrics:jobs:*:*:*
- Actual keys: laravel_database_queue_metrics:jobs:redis:default:...
- Laravel's Redis prefix was not included in the pattern
Solution:
- Build full pattern: [redis_prefix][our_prefix]:jobs:*
- Pass full keys to getHash() (no prefix stripping needed)
Tested in sandbox with 40+ FastJob executions - now correctly
aggregates total_jobs_processed and total_jobs_failed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fb0daa4 commit 422005d
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | | - | |
104 | | - | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 112 | + | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
0 commit comments