Answer the question
In order to leave comments, you need to log in
Why is Cron not running a queue?
Good afternoon. I use queues for importing and exporting data to the database, as well as for other operations. I wrote Jobs. I queue jobs with one cron script, and then I start the yii queue/run queue. Everything worked fine for the time being. But a few days ago Cron stopped running the queue. As a result, the queue is only added to the database but not processed, I just can’t understand what’s wrong.
List of CRON tasks
## Images
## пушим джоб на загрузку изображений
*/2 * * * * /usr/bin/wget -O - -q -t 1 http://alutis96.fvds.ru/autopillot/loading-images >/dev/null 2>&1
## Product
## джоб на обновление импорта
*/2 * * * * /usr/bin/wget -O - -q -t 1 http://alutis96.fvds.ru/autopillot/update-sclad >/dev/null 2>&1
## джоб на обновление экспорта
*/10 * * * * /usr/bin/wget -O - -q -t 1 http://alutis96.fvds.ru/autopillot/auto-export
## скрипт запуска очереди
*/10+1 * * * * /var/www/www-root/data/www/alutis96.fvds.ru/queue.sh > /var/www/www-root/data/www/queue.log
cd /var/www/www-root/data/www/alutis96.fvds.ru/
php yii queue/run
Answer the question
In order to leave comments, you need to log in
Guys, I found what was the matter, it turned out that the queue.sh file simply did not have permission to execute (the x flag was not set) and cron could not execute it, it's strange that nothing was written to the logs in this regard
Does the cron log indicate that the task is running?
Does manually running queue.sh work? From under the same user for whom crontab was made?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question