Y
Y
yazux2020-06-05 06:28:12
Message Queues
yazux, 2020-06-05 06:28:12

Why does queue stop in Laravel?

Good afternoon!
The situation is as follows: we have a Laravel project, for certain tasks a queue was created using standard framework tools ( https://laravel.ru/docs/v5/queues). The database is used to store Jobs.
The queue is started via supervisor.
His config:

[program:pusher]
process_name=%(program_name)s_%(process_num)02d
command=/opt/php71/bin/php /var/www/www-root/data/www/domain.ru/artisan queue:work --queue=pusher --tries=3 --timeout=60 --memory=1024
autostart=true
autorestart=true
user=myUser
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/www-root/data/www/domain.ru/queue_pusher.log


The problem is that the job itself stops taking tasks from the database. If you check if it works from the console, then the supervisor says that everything is running and working fine, but the tasks in the database table continue to accumulate.

5ed9bbacbdde7410801447.jpeg

If you restart the supervisor, then the tasks start to run, but after a while they get up again.
The network sinned that the supervisor did not have enough memory, allocated a whole gigabyte. The problem didn't go away.
Can anyone come across what could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question