Reputation: 1
I am having issue moving the Redis queue from local 127.0.0.1 to AWS elastic cache. I have replaced the redis host in .env file and restarted the queue on the server.The php artisan queue:restart shows no error message and displays success message
Broadcasting queue restart signal.
After switching to AWS the jobs are not picked up for execution. When I switch the queue back to 127.0.0.1 it works fine.
The redis version on the server was 3.2.6 where as the redis version used on the AWS elastic cache is 6.2.6. We are using predis package(1.1.1).The configurations are given below.
'redis' => [
'cluster' => false,
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 3),
],
'test_queue' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 3),
],
],
Is there any compatibility issue because of the versions?
Upvotes: 0
Views: 471