Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
We would like to send mail for start / end for data processing where we have parent job with multiple child job. In case of any point of error, we need to send mail with attached log to identify the issue.
Please suggest the approach with any challenges or prerequisite to do this.
FYI, we are maintaining the error log using tredirect component so, need approach add the file in the failure case.
We are using TOS.
Thanks for your reply.
So, if I understand you correctly, we should have tsendmail job at the beginning and end of master job to send Start and end mail. And to handle the failure mail scenario, we should add tsendmail to all the trunjob with trigger on "run on Subjob error" isn't? Please confirm.
We are catching all type of error directly by redirecting the console output in a file using redirectoutput component. Now with that file location and file name , I hope we can attach/send the mail in case of component error.
I hope this will work.
You can also use a tLogCatcher component linked to a tSendMail component. Populate the message portion with string labels and the relevant fields from tLogCatcher (like "project: "+row1.project). Make sure you edit the Job Settings>Stats & Logs portion of your project properties to include logs. You can put one of these subjobs in your parent job and each of your child jobs.
Edit - just noticed your file requirement. You can add that as an attachment in the tSendMail.