Answer the question
In order to leave comments, you need to log in
Why is Queue:work not getting tasks from the queue?
Strange behavior of laravel on the server - for some reason queue:work does not receive tasks from the queue, although they are written there, checked both on mysql and on redis
, can anyone come across a similar one?
Answer the question
In order to leave comments, you need to log in
Good afternoon,
most likely you need to configure the supervisor... https://laravel.com/docs/5.4/queues#supervisor-con...
perhaps the parameters are not correctly specified, this is how
[program:laravel-worker]
process_name works for me =%(program_name)s_%(process_num)02d
command=/usr/bin/php5 /path-to-app/artisan queue:work --sleep=3 --tries=1 --daemon
autostart=true
autorestart=true
numprocs =5
redirect_stderr=true
stdout_logfile=/path-to-logs/worker.log
There were issues with redis and beanstalkd . If there is more than 1 site on the same server, then you need a different queue server value for the queue parameter for each site. To avoid confusion between sites. The default is default .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question