Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Using Multiple queues in configuration #99

Unanswered
aleksandarTenevv asked this question in Q&A
Discussion options

Hello,

I am trying to set this package to use multiple queues but I haven't found anything on how to achieve that or is it possible to be set.
The only solutions that came to my mind was to create another connection in queue.php config and dispatch the jobs on that connection. This solution is creating the jobs in a different Cloud Tasks queue but when the /handle-task endpoint is called I get 404 response. The default queue is executing tasks on the same endpoint and that works normal.
Is there any way to achieve this using one connection config with multiple queues?

You must be logged in to vote

Replies: 2 comments

Comment options

Hi,

Perhaps I am misunderstanding but it's possible to use different queues:

ProcessPodcast::dispatch()->onQueue('emails');
// ...or...
class ProcessPodcast implements ShouldQueue
{
 use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
 /**
 * Create a new job instance.
 */
 public function __construct()
 {
 $this->onQueue('processing');
 }
}

Or is this not what you are trying to achieve?

You must be logged in to vote
0 replies
Comment options

It is not clear for somebody reading the MD that the queue that is being set is just the "default" queue. That is probably where the question is coming from. ;)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /