One Star

Running master job even after subjob fails

Hi,
Problem - I am using tSqlwait to sense a condition as I would like to run ajob 24/7 ... once the condition is met I am running a subjob, it works fine as long as subjob runs fine, If the subjob fails then I would like to move the data to exception tables and continue running the master job but currently when the subjob fails , the main job is failing as well .. How do you deal with this situation.
I will post actual maps and jobs once I am in the office.
Thanks,
Milind
3 REPLIES
One Star

Re: Running master job even after subjob fails

screenshots attached !
Thanks,
Milind
Community Manager

Re: Running master job even after subjob fails

Hello Milind
Change 'onComponentError' to 'onComponnetOk',
tRunJob--onComponnetOk->tSendeMail,
if you uncheck the option 'die on child error', tRunJob component run fine.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Running master job even after subjob fails

Thanks Shong,
If I put tDie in my subjob and checked EXIT the JVM immediately and in the main job if I uncheck the option "die on child error" will it run (logically it should but in my case its just exiting the main job once the subjob is failed)
Miind