spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
1k stars 147 forks source link

Queue Name Configuration #116

Closed khurramIlyas closed 2 years ago

khurramIlyas commented 3 years ago

I think it will be really helpful if user can configure the name of queue on which the jobs will be dispatched. Write now, there is no such configuration available & all jobs are getting dispatched on "default" queue. I hope this change will bring some more dynamics to the repos.

freekmurze commented 2 years ago

If you want to use another queue, I think it's best to set a custom job that uses the queue that you want. All queuing options can be configured using that custom job.

janooosh commented 2 years ago

@khurramIlyas I ran into the very same issue, and was able to solve this through specifying the queue in the construct() method of the Job.

Bildschirmfoto 2021-12-30 um 16 32 33

Here is the reference in the Laravel documentation: https://laravel.com/docs/8.x/queues#customizing-the-queue-and-connection

khurramIlyas commented 2 years ago

@janooosh Thanks for sharing. It will help.