Closed dir closed 5 months ago
Thank you for reporting this issue!
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Thank you!
Apologies, upon doing further research and a bit of a code dive, I have discovered that this appears to be a larger Laravel framework issue.
See https://github.com/laravel/framework/issues/47578 and https://github.com/laravel/docs/pull/9000.
I would love to push this forward and get these working, or find out a way to have serialization + compression on my cache, and disable it on my queue connections. But this is not a Laravel Horizon-specific issue by any means. Sorry for unneeded issue.
Horizon Version
5.24.5
Laravel Version
11.7.0
PHP Version
8.3
Redis Driver
PhpRedis
Redis Version
6.0.2
Database Driver & Version
No response
Description
I recently integrated Laravel Horizon as a dedicated worker service for a horizontally scaled Laravel API.
It has been wonderful, but when I click on the metrics tab, it loads infinitely. After looking at the logs, I get the following error message on a variety of Horizon endpoints.
I suspect this is because I am using custom PHPRedis serializer and compression options in my
config/database.php
, like so:I am also ensured to schedule the horizon:snapshot command every five minutes in my
routes/console.php
file, and have confirmed it is running:Another odd note is that Horizon seems to run the jobs fine, and the outputs for failed/completed/etc jobs is working perfectly. Mainly seems to be the metrics.
Steps To Reproduce
To reproduce, I have provided the bare minimum configuration to replicate:
config/database.php
Redis configuration:config/queue.php
config/cache.php
config/horizon.php
routes/console.php
If anything else is needed on the replication-side, please let me know!