Running master job even after subjob fails

Highlighted
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
Highlighted
One Star

Re: Running master job even after subjob fails

screenshots attached !
Thanks,
Milind
Highlighted
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
Highlighted
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

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog