I am using Talend open studio 5.6. My requirement is as below. My single job will run max 10 times. If it runs perfectly it will create success logs but if not runs then it will rerun for max 10 times. If still it is not running then it should get stop and then Unsuccessful log should be created.
I suggest you build a steering job which calls the worker job 10 times in a subjob (tLoop_1 --iterate->tRunJob_1)
If this subjob runs fine -> use the OnSubjobOk trigger do what you need for the success.
If the subjob fails -> use the OnSubjobError trigger do the error handling.
In this simple case I suggest of copy this subjob twice (tLoop_2 -iterate-> tRunJob_2) and run this in the error case.
Talend Certified working for cimt objects AG in Berlin