-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send Multiple different jobs to same QUEUE #14
Comments
Of course you can - it's up to you :) You can save whatever you want in the SQS, as long as it fits in the maximum message size. You just have to implement your own logic - how you choose what to do with the job/payload once you receive it somewhere |
@dusterio Every job that I am pushing is being handled by the default-handler and not by its respective handler. Am I missing something? Please help. |
Oh I see what you mean. Why don't you create some kind of intermediary class that fetches the payload, sees what's inside and then decides to which Job class to pass it? What you are implementing is not really a plain SQS/JSON anymore because you want to have some important metadata in it. I'm not sure if it should be an optional part of this package or not (maybe it should) |
The handlers point to the queue name. Therefore you can only have one job per sqs queue. The easiest option is to save a |
The |
@ejunker wanna make a PR? :) |
I am using Lumen 5.4.
I have multiple different jobs that I want to send to the same queue.
In essence, I want to use the job part of the payload as well.
Is there any way to do it.
The text was updated successfully, but these errors were encountered: