• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Loop to continue after a sub job failure

#1 2012-05-31 07:39:11

karthikj18
Member
Registered: 2011-08-11
Posts: 57

Loop to continue after a sub job failure

Hi,
I have a package consist of tflowtoIterate and the sub job. There is a onSubJobError connected to tflowtoiterate component to another sub job.

tFlowtoIterate -- > iterate --> Sub job1
    |
    |
    V
OnSubJobError
   |
   |
   V
Sub job2

If the subjob1 fails it triggers the subjob2, but after the subjob2 executed, the job is get exit.

My concern is, after the execution of subjob2, the tFlowtoIterate should continue to its next loop in the package.

Is there any way to achieve this?


Thanks,
Karthikeyan.

Offline

#2 2012-05-31 08:12:00

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Loop to continue after a sub job failure

Hi

If a subjob gets an error, it will stop the entire job.
Here is a workaround. Create job as seen below.
Child job:
Subjob1
     |
OnsubjobError
     |
Subjob2

Mainjob:
tFlowtoIterate-->tRunjob(child job)

Do not select "Die on child error" option on tRunjob.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Loop to continue after a sub job failure

Board footer

Powered by FluxBB