Both are working fine but are only pushed to the same queue "calculator-webhook-queue". I want each to go to their respective queues. Please help me where I am messing?
M
Modestas
✓ Link copied!
I haven't worked with the SQS, but I think that there is an issue with your queue is working in this manner:
start with calculator-webhook-queue and if there are no more jobs there - take from offers-queue.
While you should also start two workers, one for each of your Queues:
Thank you for your reply. I just solved it by creating two configuration files in /etc/supervisor/conf.d directory, each for one queue and it started working.
I have setup two queues (calculator-webhook-queue & offers-queue) on Amazon SQS with the following code:-
In
.envfileIn
queue.phpconfig fileIn supervisor config file on Amazon server
I have two jobs that are dispatched like this into separate queue
Both are working fine but are only pushed to the same queue "calculator-webhook-queue". I want each to go to their respective queues. Please help me where I am messing?
I haven't worked with the SQS, but I think that there is an issue with your queue is working in this manner:
start with
calculator-webhook-queueand if there are no more jobs there - take fromoffers-queue.While you should also start two workers, one for each of your Queues:
https://laravel.com/docs/11.x/queues#specifying-the-connection-queue
ps. Documentation of what you did right now is this: https://laravel.com/docs/11.x/queues#queue-priorities
Thank you for your reply. I just solved it by creating two configuration files in /etc/supervisor/conf.d directory, each for one queue and it started working.