Commit b4e88c9
fix(redis): strip Laravel prefix from keys before getHash()
Problem:
Laravel's Redis commands have inconsistent prefix behavior:
- keys() returns: "laravel_database_queue_metrics:jobs:..." (WITH prefix)
- hgetall() expects: "queue_metrics:jobs:..." (WITHOUT prefix, adds it automatically)
When we passed keys() results directly to getHash(), Laravel added
prefix twice, looking for non-existent keys.
Solution:
Strip Laravel's Redis prefix from keys returned by keys() before
passing them to getHash(). This ensures getHash() can add the prefix
correctly.
Result:
Overview endpoint now correctly aggregates job counts:
- total_jobs_processed: 160 (was 0)
- total_jobs_failed: 40 (was 0)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4990778 commit b4e88c9
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
0 commit comments