-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Messenger] Prioritized Transports example does not work #11967
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
Comments
The problem is that the docs assume you're using the
Does that help? I think just changing Side note - we need to add "option" validation to the transport. The amqp transport should (in a perfect world) throw an exception if this non-existent queue_name option is passed to it. |
Hi @weaverryan, Thanks for your answer. With amqp, according to the doc, we should have this :
But if I launch this command : sf messenger:consume async_priority_high -vvv In Symfony\Component\Messenger\Transport\AmqpExt\Connection, in the function fromDsn(...), we can see 2 options named 'exchange' and 'queues' :
Maybe I should set something for queue option but I don't know what :( That's the reason why I created 2 variables, MESSENGER_TRANSPORT_DSN_HIGH and MESSENGER_TRANSPORT_DSN_LOW to bypass the problem. |
I'm closing this one because the original user account has been deleted, so we can't get more feedback and Ryan mentioned that this is probably OK if you follow the entire docs. Thanks. |
For the Prioritized Transports, the example displayed does not work. I solved it in my code using two different dsn (not sure it is the best pratice).
In the doc, we have :
It should be :
The text was updated successfully, but these errors were encountered: