Using Multiple queues in configuration #99
Unanswered
aleksandarTenevv
asked this question in
Q&A
Replies: 1 comment
-
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? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions