mardi 10 juillet 2018

Can anyone please tell me how to trigger queues in laravel that runs on aws sqs connection without artisan command in terminal?

I was running the queue with artisan command (php artisan queue:work) successfully. But I don't want to use artisan command every time and I want to run it automatically.I tried calling the artisan command from controller i.e $exitCode = Artisan::call('queue:work', [ '--queue' => 'https://sqs.ap-south-1.amazonaws.com/180331497961/TestMail', '--timeout'=> 30 ]); but it was running in a infinite loop. Please tell me is there a way to automate it in aws-sqs? if not how to do it without artisan?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire