Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tlogcatcher, tsendmail for a sequence of jobs?

Hi,
0683p000009MELd.png
I have a job as shown above. My requirement is as follows
In case a single child job fails, I want the reason for failure to be captured and sent in an email to a list of people.
1. Should I add Tdie, tlogcatcher, tsendmail to every child job in the above sequence of jobs?  I would also want the execution of the rest of the jobs to halt and not proceed in case of any error.
2. Would it possible to add the above mentioned components inside the child jobs?
3. In some of the cases on the internet, I observed that on error there is a direct link to tsendmail and no tlogcatcher used. My understanding was the error must be caught by tlogcatcher and then connect a tsendmail to tlogcatcher. Is my understanding incorrect?
Help on these would be greatly appreciated
Thanks in advance
Rathi
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hi,
You can add tlogcatcher component into your child job and send error email by email.
The work flow should be:tlogcatcher-->tsendmail
Here is an option "Die on child error" which will stop job if there is any error on child job.
Best regards
Sabrina
0683p000009MELi.png
Anonymous
Not applicable
Author

Hi Sabrina,
Thank You for the response
In case there are no errors present, would the tlogcatcher component be triggered? 
My understanding was that tlogcatcher would capture any logs, so would it even send a mail in case of success?
Thanks 
Rathi
Anonymous
Not applicable
Author

Hi,
tLogcatcher operates as a log function triggered by one of the three: Java exception,  tDie  or  tWarn , to collect and transfer log data.
It cannot be triggered without java exception.
If you want to send an email for notifying a success job, you can use onsubjobok connector to trigger a tsendmail component directly.
The wok flow should be:
The main subjob:xxx-->xxx-->xxx
                               |
                       onsubjobok
                               |
                    tsendmail(In message body, give a notification like "The job works well with no error" )

Best regards
Sabrina