你好,我有一个非常奇怪的行为拉拉维尔红葡萄酒队列+主管。队列被插入到Redis中,我可以看到它们,主管正在工作,即使我尝试手动启动php artisan queue:work电子邮件也没有发送。我的心事:队列:
'default' => 'redis',这是我从获得的redis-cli monitor日志
2choice:illuminate:queue:restart"我的主管:
[program:2choice]
process_name=%(program_name)s_%(process_num)02d
command=php artisan queue:work --memory=256 --sleep=3 --tries=3 --daemon --force
directory=/var/www/2choice
autostart=true
autorestart=true
user=wwwu
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/2choice/storage/logs/queue.log
stdout_logfile_maxbytes=5MB
stdout_logfile_backups=5我也尝试过php artisan queue:listen,但仍然没有发送电子邮件
如果我在htop中运行cmd,我可以看到这8个进程运行。
这是如何将它们插入redis中的:
{
"job": "mailer@handleQueuedMessage",
"data": {
"view": "mail.activation",
"data": {
"user": "dsdfs",
"reflink": "https://www.domen.com/register/7/hrHGMgD9jwl4PmyElro86wpapmVTTdQS"
},
"callback": "C:32:........;}}"
},
"id": "yiSsPWFmBz2DfJprFJ1kD4Ti3pUdxxTR",
"attempts": 1
}MySQL table for failed jobs是空的
有什么帮助或建议吗?
发布于 2016-03-20 17:57:59
好的,我解决了,我的应用程序在maintenance mode.中运行,php artisan up解决了它
更新:您可以添加evenInMaintenanceMode();
https://stackoverflow.com/questions/36112132
复制相似问题