Handling email failure in VC - VisualCron - Forum

Community forum

thomas
2021-04-22T09:01:26Z
This is a general question about handling sending of emails in vc.

Email is notoriously unstable in general, and we sometimes have jobs that fail entirely because of some email failure (smtp server blipp, email rejected and so on). Does anybody have any good experience on solving this problem from a VC point of view? Having a simple retry rarely works I have found. I have considerered creating a message queue for handling this in RabbitMQ, but it is a lot of work. I have also considered having a separate job that handles sending emails. The other jobs can call this job async, put job in queue, and without inheriting exit code. This way the calling job will not fail, but it is only a thought experiment so far.
Support
2021-04-23T12:38:58Z
Originally Posted by: thomas 

This is a general question about handling sending of emails in vc.

Email is notoriously unstable in general, and we sometimes have jobs that fail entirely because of some email failure (smtp server blipp, email rejected and so on). Does anybody have any good experience on solving this problem from a VC point of view? Having a simple retry rarely works I have found. I have considerered creating a message queue for handling this in RabbitMQ, but it is a lot of work. I have also considered having a separate job that handles sending emails. The other jobs can call this job async, put job in queue, and without inheriting exit code. This way the calling job will not fail, but it is only a thought experiment so far.



My initial thought to this was something it seems you already thought of; " I have also considered having a separate job that handles sending emails. The other jobs can call this job async, put job in queue, and without inheriting exit code. This way the calling job will not fail, but it is only a thought experiment so far.".

That is what I would attempt most likely, when it comes to solutions within visualcron to handle this.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
thomas
2021-04-23T14:34:19Z
Thanks, I will try it out
Joey S
2021-04-27T15:36:27Z
Our mail tasks are pretty straightforward; internal exchange sending anonymously through port 25. The message just goes and the only issues we ever have would be unhandled variable translations.
Scroll to Top