Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Templated email messages fails when sending async (thru messenger transport)#39458
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ronnylt commentedDec 11, 2020
| Q | A |
|---|---|
| Branch? | 5.x |
| Bug fix? | yes |
| New feature? | no |
| Tickets | Fix#39190 |
| License | MIT |
ronnylt commentedDec 11, 2020
What is the intended behaviour when queueing template messages, doing the rendering before enqueuing the message for async sending, OR just before actually sending the message to the mailer transport? In other words, is rendering intended to be done before dispatching to the messenger's bus? I think this clarification is important for a fix. |
6af42cd tofa6e8e7Comparejderusse commentedDec 11, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
One benefit of rendering the template BEFORE queuing, is: the extensions have access to the request context.
When switching to async, you have to provide the needed context (ie. Rendering template is fast. I'm not sure adding such complexity and bugs worth it. |
859598c to9cf10d5Compare9cf10d5 to3c3c39fCompareronnylt commentedDec 12, 2020
@jderusse +1 on rendering before queuing, this also allows to have a minimalist worker application that only takes care of sending ready-to-send emails. The proposed fix removes the cloning of the message before sending it to the Not sure if the cloning is needed or if removing this can have any other side-effects. Any ideas? Thanks. |
ronnylt commentedDec 21, 2020
Hi! Can anyone provide any updates or guidance on how to proceed? Thanks! |
mburtscher commentedDec 23, 2020
perebusquets commentedJan 15, 2021
Also looking forward to implement this fix, any idea on when can we expect this to be fixed? |