MKJ*_*MKJ 6 php cron cron-task supervisord laravel-4
我必须运行 laravel 命令php artisan queue:work --daemon来运行存储在 Beanstalkd 队列上的作业。
我遇到了两种可能的解决方案:
Register a command in the config files of Supervisord and start it.*/1 * * * * /usr/bin/php /var/www/laravelProj/artisan queue:work --daemon --tries=3有人可以解释一下我应该走什么路以及最能提高性能的方法吗?
Supervisor 的一个主要优点是您在那里设置的任务一直在工作。这意味着当进程完成时,新的进程将立即开始。
Crontab以最少的时间运行每个进程!因此,如果您有类似的任务,queue:work最好使用Supervisor 而不是Crontab。