jeudi 1 octobre 2015

Setting multiple queue name in Laravel5.1

This is my first time using Laravel5.1 Queue. I already set it up and it worked fine. But when i tried using here ->onQueue('adding_something'), Below is my code in dispatching the job

$command = (new SendInvitation($pricelist_id, $user_id, $cronType, $status, $version, $company_id))->onQueue('add_something')->delay(360);

$this->dispatch($command);

after this the jobs stop working. Now they dont get process at all. :(. On my config/queue.php, i tried updating the queue section to

'queue' => 'add_something,default'

Also tried restarting the php artisan queue:restart but still it doesnt work.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire