You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Pending jobs count**|**Doesn't work**| Horizon shows 0 pending |
230
-
|**Completed jobs list**|**Doesn't work**| Use Prometheus/Grafana for metrics |
230
+
|**Completed jobs list**|**Experimental**| Enable with `horizon.enabled` config |
231
+
|**Recent jobs list**|**Experimental**| Enable with `horizon.enabled` config |
231
232
|**horizon:clear**|**Doesn't work**| Use `balanced-queue:clear` instead |
232
233
233
-
**Why?** Balanced Queue uses a different Redis key structure (partitioned queues) than standard Laravel queues. Horizon expects jobs in `queues:{name}` but we store them in `balanced-queue:{queue}:{partition}`.
234
+
**Why?** Balanced Queue uses a different Redis key structure (partitioned queues) than standard Laravel queues. Horizon expects jobs in `queues:{name}` but we store them in `balanced-queue:queues:{name}:{partition}`.
235
+
236
+
### Experimental: Horizon Dashboard Integration
237
+
238
+
You can enable experimental Horizon events integration to see completed/recent jobs in the Horizon dashboard:
239
+
240
+
```php
241
+
// config/balanced-queue.php
242
+
'horizon' => [
243
+
'enabled' => 'auto', // 'auto', true, or false
244
+
],
245
+
```
246
+
247
+
| Value | Behavior |
248
+
|-------|----------|
249
+
|`'auto'`| Enable if `laravel/horizon` is installed (default) |
250
+
|`true`| Always enable (requires Horizon) |
251
+
|`false`| Disable Horizon events |
252
+
253
+
Or via environment variable:
254
+
255
+
```env
256
+
BALANCED_QUEUE_HORIZON_ENABLED=auto
257
+
```
258
+
259
+
**Warning:** This feature is experimental and adds a small overhead per job (writing to Horizon's Redis keys). Test thoroughly in your environment before using in production.
0 commit comments