lundi 3 mai 2021

Laravel queues are not processing automatically until I run php artisan queue:work command

I came through multiple solutions on stack overflow but no luck. It worked fine before 1 month but now a days it is not working.

I am using Ubuntu Os and nginx server. For queue driver I used redis Here is my redis configuration in .env

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=file
QUEUE_DRIVER=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

I also used supervisor to monitor and here is my configuration for supervisor

[program:worker-326242]
command=php7.4 /home/forge/myapp.com/artisan queue:work redis --sleep=10 --daemon --quiet --tries=3 --env=production --queue="default"

process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=forge
numprocs=1
stdout_logfile=/home/forge/.forge/worker-326242.log

The problem is queue jobs are not executing automatically but it works when i run the command "php artisan queue:work"

Please ignore my poor english. Any help will be appriciated



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire