Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
AbiJeev
Creator
Creator

Tparallelize issue in sending mail when one of subjob fails

Hi,

I have two subjobs a, that are running parallel by connecting with tparallelize​. In both my subjobs I have given like on subjob error connected to mail component With specific messages. I have checked "Die when one of the subjob fails" in tparallelize. So when any subjob fails sometimes its triggering mail and die with tparallelize and sometime without even sending mail tparallelize stops the talend job. I want the error mail to be triggered and stop the job

Labels (3)
6 Replies
Anonymous
Not applicable

Can you give us a screenshot of your job please?

AbiJeev
Creator
Creator
Author

Please find att​ached

Anonymous
Not applicable

Could you try adding a tDie after the SendMail? that should terminate the job.

AbiJeev
Creator
Creator
Author

Job is failing for me no issues in that but error mail is not triggering ​and its not always sometimes it triggered the mail compo ent and fails and sometimes before that.

And to reply your question I added t die and tried then also am not getting mail , tdie also not triggered​

Anonymous
Not applicable

Have you identified where the error is occurring? I notice that your last Subjob on one of your branches does not have the sendmail component attached to it. I am guess that the error may be occurring there.....

 

0695b00000WvvpcAAB.png 

Another way of dealing with this that is cleaner is to use a tPostJob component. This component will always run at the end of a job even if it errors and dies. This is a good way of maintaining error notifications. Add a tPostJob and connect your email component to it using a RunIf link. Add some logic so that it only runs if there is an error.

AbiJeev
Creator
Creator
Author

Hi ,​ error occurred in subjob where it was attached to mail component. I came up with workaround like created one master job and dragged this job into that master job and connected onsubjob error from this child job to mail component