<?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 Re: File polling till specific time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199813#M2569</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, you could use the tLoop component, tFileExists &amp;amp; tSleep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However generally, I wouldn't recommend a Talend start and stay running, looping for an indefinite period of time - could you not just trigger the job to run every few minutes externally (from CRON or something) between 8 &amp;amp; 10?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 16:05:38 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2019-01-17T16:05:38Z</dc:date>
    <item>
      <title>File polling till specific time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199812#M2568</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a requirement for polling a directory for files and I am using tWaitforFile Components but facing one issue. Actually&amp;nbsp;&lt;SPAN&gt;tWaitforFile&amp;nbsp;provides option for seconds between iterations and no of iterations to exit out of infinite loop but I want to do file polling till specific time, suppose if job starts at 8 then till 10 I need to do file polling.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If would be great if anyone worked on the same scenario&amp;nbsp;and share their approach.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 14:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199812#M2568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-17T14:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: File polling till specific time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199813#M2569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, you could use the tLoop component, tFileExists &amp;amp; tSleep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However generally, I wouldn't recommend a Talend start and stay running, looping for an indefinite period of time - could you not just trigger the job to run every few minutes externally (from CRON or something) between 8 &amp;amp; 10?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199813#M2569</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-01-17T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: File polling till specific time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199814#M2570</link>
      <description>&lt;P&gt;as variant - combination&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tLopp + tSleep + compare time from start:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tLoop.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M23y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148306iC0A751D2808E5E8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M23y.png" alt="0683p000009M23y.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;at the begin in tJava save StartTime:&lt;/P&gt; 
&lt;PRE&gt;context.StartTime=TalendDate.getCurrentDate();&lt;/PRE&gt; 
&lt;P&gt;and compare it with current time for each iteration:&lt;/P&gt; 
&lt;PRE&gt;TalendDate.compareDate(TalendDate.getCurrentDate(),TalendDate.addDate(context.StartTime,2,"HH")) &amp;lt;=0&lt;/PRE&gt; 
&lt;P&gt;similar&amp;nbsp;logic could be about absolute time&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and also you can add in tLoop criteria &amp;amp;&amp;amp; additional parameter - is FileReceived and put this to 1 for exit loop earlier&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 00:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-polling-till-specific-time/m-p/2199814#M2570</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-18T00:07:41Z</dc:date>
    </item>
  </channel>
</rss>

