Timeline for Where to send the email to notify an error in a worker?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 22, 2022 at 19:12 | vote | accept | Álvaro García | ||
Oct 26, 2022 at 14:41 | comment | added | juhist | Yes, the e-mail sending should ideally be asynchronous so the code to prepare e-mail will only get information that it's queued, and the asynchronous code later handles the sending. | |
Oct 25, 2022 at 17:08 | comment | added | Álvaro García | it is good suggestion. I have the log, but the moment it is in the catch of the worker. Would you recommend to quit from this catch and handle log the exception in another place? Perhaps to have a log handler as the email handler that you suggest? | |
Oct 25, 2022 at 17:04 | history | answered | juhist | CC BY-SA 4.0 |