thiyagu's avatar

Queue process implementation in Lumen

How to achieve the Queue process implementation in lumen? In Lumen, PHP artisan commands are not working. so how to execute queue listener command "php artisan queue:listen". Anyone achieved Queue implementation in Lumen, Please help me

0 likes
7 replies
thiyagu's avatar

But the php artisan comment not working in lumen project

zaherg's avatar

What are the errors you are getting from running the queue:listen command?

thiyagu's avatar

Mistaken by me artisan comment work now. But now I was facing another issue. Queue process using Redis getting below error in Lumen.

Argument 1 passed to Illuminate\Queue\Connectors\RedisConnector::__construct() must be an instance of Illuminate\Contracts\Redis\Factory, instance of Redis given, called in /home/www/html/ppdevchn7.com/lumen/blog/vendor/illuminate/queue/QueueServiceProvider.php on line 126

zaherg's avatar

Am not sure I can help on this one without looking at your composer.json file to know which redis package have you used.

thiyagu's avatar

we have used predis package. please find the blow require section in composer.json

"require-dev": { "fzaninotto/faker": "^1.4", "phpunit/phpunit": "^7.0", "mockery/mockery": "^1.0", "predis/predis": "~1.0" },

zaherg's avatar

I cant tell what is the main issue, but first predis should be part of your require not part of require-dev. without looking at the whole code I can't provide much help to be honest.

sorry man.

Please or to participate in this conversation.