title: Talend ETL - running child job in tLoop
body: <p>I am trying to run a child job in tLoop. The child job connects to salesforce and downloads &quot;Account&quot; object to local SQL Server table. There are problems with connection to Salesforce, it takes few attempts to connect. Hence, I put the connection stuff in child job and now trying to call the child job in a loop. Below is the image of my parent job.</p>
  <p><a href="https://i.stack.imgur.com/2gmQc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2gmQc.png" alt="enter image description here" /></a></p>
  <p>As you can see in image the tRunJob_1 has error because of Salesforce connection problem in child job. This is correct behaviour.</p>
  <p>The setRetryConnect that is connected to OnComponentError has this code: <code>context.retryConnect = true;</code></p>
  <p>The setRetryConnect that is connected to OnComponentOk has this code: <code>context.retryConnect = false;</code></p>
  <p>So, I am tripping this context variable depending on whether child job succeeds or fails.</p>
  <p>My tLoop looks as below:</p>
  <p><a href="https://i.stack.imgur.com/j0qmp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0qmp.png" alt="enter image description here" /></a></p>
  <p>I want the tLoop to run as many times till the condition remains true. That is till the time it continues to error out. However, it just iterates once and then stops. Could anyone please let me know what correction need to be done here to make the tLoop work?</p>