简体   繁体   English

Laravel队列订阅失败

[英]Laravel Queue subscribe is failing

I am trying to setup iron queues using php artisan command. 我正在尝试使用php artisan命令设置铁队列。 Here is what i have tried so far... 到目前为止,这是我尝试过的...

Set credentials at config/queue.php 在config / queue.php上设置凭据

Tried following command 尝试以下命令

php artisan queue:subscribe mailer queue/receive

It throws following error... 它引发以下错误...

[RuntimeException]                    
  Iron.io based queue must be default.

Please suggest a fix, thanks. 请提出解决方案,谢谢。

This error means that the queue instance created is not of type IronQueue, which is most likely caused by not setting properly a queue driver. 此错误意味着创建的队列实例不是IronQueue类型,这很可能是由于未正确设置队列驱动程序引起的。

Therefore make sure that in your .env file 因此,请确保在您的.env文件中

QUEUE_DRIVER=iron

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM