Have you did any upgrading and perhaps missed something in the upgrade guide?
Just a thought.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My jobs will all queue correctly and start processing, but when I check them after some time, the Pending and Completed jobs have vanished. I thought this was an issue with the cache redis stores conflicting and getting cleared, but I have those configured correctly as far as I can tell.
I have a pro version of Herd 1.9.1 (latest) running with PHP 8.2.22. My app is on Laravel v10.48.20 with Horizon v5.27.1.
I have a separate redis database setup in config/database.php
return [
//...
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
'jobs' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => 'jobs_' . env('REDIS_DB', '1'),
],
//...
];
I have config/horizon.php set to use the jobs connection.
return [
//...
/*
|--------------------------------------------------------------------------
| Horizon Redis Connection
|--------------------------------------------------------------------------
|
| This is the name of the Redis connection where Horizon will store the
| meta information required for it to function. It includes the list
| of supervisors, failed jobs, job metrics, and other information.
|
*/
'use' => 'jobs',
//...
];
And I have these set in my .env (which initially I thought solved the issue - not having a REDIS_DB defined).
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
REDIS_DB=myappname
REDIS_CACHE_DB=myappname_cache
REDIS_QUEUE=default
I've been going on circles with this for hours, so any help is appreciated!
Please or to participate in this conversation.