Reputation: 1462
I am running a Laravel 5.1 project on Google App Engine.
To speed up the process, I found a package providing interfaces between GAE and Laravel5 implementations. (https://github.com/shpasser/GaeSupportL5)
Now, I would like to handle certain type of jobs differently. Different reattempts or failure handling. Also, I don't want certain type of jobs to interfere with others just by sitting in the queue.
To do this, my guess is to use multiple queues. In the implementation of shpasser package, it seems that only one queue connection can be used. But the documentation of both GAE and Laravel 5 support multiple queues.
How do I do this?
Upvotes: 4
Views: 288
Reputation: 6005
From inspecting Shpasser/GaeSupportL5/Queue/GaeQueue.php it appears capable of supporting multiple queues, see line #88:
return $task->add($this->getQueue($queue));
In the context of this method, this is passing the specified queue name to add() (from the GAE TaskQueue API) or 'default' if nothing is specified.
As a workaround you could also utilize the GAE TaskQueue API directly.
Upvotes: 1