<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to implement API call retry in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327296#M96687</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I need your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a flow which is calling API using tREST component (See flow.jpg).&lt;/P&gt;&lt;P&gt;I am looping till I don't get any result from the page (to end the loop) (see tJav&lt;/P&gt;&lt;P&gt;.jpg&lt;/P&gt; a loop.jpg)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API often timeout so I would like to implement a retry option.&lt;/P&gt;&lt;P&gt;Any hints how I could do it ? &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:28:18 GMT</pubDate>
    <dc:creator>stagliaferri1640766615</dc:creator>
    <dc:date>2024-11-15T22:28:18Z</dc:date>
    <item>
      <title>How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327296#M96687</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I need your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a flow which is calling API using tREST component (See flow.jpg).&lt;/P&gt;&lt;P&gt;I am looping till I don't get any result from the page (to end the loop) (see tJav&lt;/P&gt;&lt;P&gt;.jpg&lt;/P&gt; a loop.jpg)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API often timeout so I would like to implement a retry option.&lt;/P&gt;&lt;P&gt;Any hints how I could do it ? &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327296#M96687</guid>
      <dc:creator>stagliaferri1640766615</dc:creator>
      <dc:date>2024-11-15T22:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327297#M96688</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;When timeout occurs and the job fails to run, to retry the API call, move this part to a child job, use a trunJob to call the child job and uncheck the 'die on error' option.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Wx7o4AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142599i5630C5788731D559/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Wx7o4AAB.png" alt="0695b00000Wx7o4AAB.png" /&gt;&lt;/span&gt;Define a global variable that both of main job and child job can access it,  this variable is used on tLoop as you did now.  In the child job, set the value of global variable to true when an error occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327297#M96688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T01:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327298#M96689</link>
      <description>&lt;P&gt;Thank you Shong.&lt;/P&gt;&lt;P&gt;I think I am doing something wrong - could you please tell me how to create a child job and use tRun to call it? &lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 07:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327298#M96689</guid>
      <dc:creator>stagliaferri1640766615</dc:creator>
      <dc:date>2022-10-14T07:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327299#M96690</link>
      <description>&lt;P&gt;Create a new job, then copy the components I mentioned and paste them to the job. In the original job, use a tRunJob component to call the new job. &lt;/P&gt;&lt;P&gt;If you need to pass some value from main job to child job, please refer to this &lt;A href="https://help.talend.com/r/en-US/8.0/system/component-trunjob-pass-value-from-parent-to-child" alt="https://help.talend.com/r/en-US/8.0/system/component-trunjob-pass-value-from-parent-to-child" target="_blank"&gt;article&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 07:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327299#M96690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T07:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327300#M96691</link>
      <description>&lt;P&gt;Thank you again! though I have more questions, sorry &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in the main job I have to pass two values: id and loop which are not context variables.&lt;/P&gt;&lt;P&gt;In the Tjava in the main job I print out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;globalMap.get("id"));&lt;/P&gt;&lt;P&gt;globalMap.get("tLoop_2_CURRENT_ITERATION");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looking at the &lt;A href="https://help.talend.com/r/en-US/8.0/system/component-trunjob-pass-value-from-parent-to-child" alt="https://help.talend.com/r/en-US/8.0/system/component-trunjob-pass-value-from-parent-to-child" target="_blank"&gt;article&lt;/A&gt; it seems that I have to define :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id &lt;/P&gt;&lt;P&gt;tLoop_2_CURRENT_ITERATION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the context as , for example: context.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 10:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327300#M96691</guid>
      <dc:creator>stagliaferri1640766615</dc:creator>
      <dc:date>2022-10-14T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement API call retry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327301#M96692</link>
      <description>&lt;P&gt;yes, if you need to pass value from main job to child job, you need to define context variable in child job, and select the variable on tRunJob to receive the value. Let me know if you have any more questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 07:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-API-call-retry/m-p/2327301#M96692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-17T07:25:48Z</dc:date>
    </item>
  </channel>
</rss>

