<?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 tRunJob and tWaitForFile behaviors in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275630#M51946</link>
    <description>Hi everybody, 
&lt;BR /&gt;I'm trying to start many job in parallel (they must all run independently, started at the same time by a super-job) 
&lt;BR /&gt;but can't find how to do it, they are always processed sequentially and if some of them fails, the super-job fails to even 
&lt;BR /&gt;if i use a tDie. 
&lt;BR /&gt;My project consists of two jobs, the super job named Main loads a context and then search for configuration files in a 
&lt;BR /&gt;directory defined by the context. For each of the found files, it must start a sub job named Product with the tRunJob and 
&lt;BR /&gt;passing it the corresponding configuration file. 
&lt;BR /&gt;The sub jobs must indefinitly generate xml outputs by being triggered by a new file in a directory, the xml ouputs goes 
&lt;BR /&gt;in a xml file to describe which files have been found and what are their caracteristics. 
&lt;BR /&gt;So the problem is that the subjobs are processed sequentially and so, only one of them is started because it continues 
&lt;BR /&gt;to wait for a new file, but i would like to have all the subjobs started and running indefinitly to deal with the new created files 
&lt;BR /&gt;specific to each Product subjob. 
&lt;BR /&gt;I let you see the joined schemas, tell me if you need more explanations 
&lt;BR /&gt;Thanks a lot 
&lt;BR /&gt;Jonathan</description>
    <pubDate>Sat, 16 Nov 2024 14:29:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:29:43Z</dc:date>
    <item>
      <title>tRunJob and tWaitForFile behaviors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275630#M51946</link>
      <description>Hi everybody, 
&lt;BR /&gt;I'm trying to start many job in parallel (they must all run independently, started at the same time by a super-job) 
&lt;BR /&gt;but can't find how to do it, they are always processed sequentially and if some of them fails, the super-job fails to even 
&lt;BR /&gt;if i use a tDie. 
&lt;BR /&gt;My project consists of two jobs, the super job named Main loads a context and then search for configuration files in a 
&lt;BR /&gt;directory defined by the context. For each of the found files, it must start a sub job named Product with the tRunJob and 
&lt;BR /&gt;passing it the corresponding configuration file. 
&lt;BR /&gt;The sub jobs must indefinitly generate xml outputs by being triggered by a new file in a directory, the xml ouputs goes 
&lt;BR /&gt;in a xml file to describe which files have been found and what are their caracteristics. 
&lt;BR /&gt;So the problem is that the subjobs are processed sequentially and so, only one of them is started because it continues 
&lt;BR /&gt;to wait for a new file, but i would like to have all the subjobs started and running indefinitly to deal with the new created files 
&lt;BR /&gt;specific to each Product subjob. 
&lt;BR /&gt;I let you see the joined schemas, tell me if you need more explanations 
&lt;BR /&gt;Thanks a lot 
&lt;BR /&gt;Jonathan</description>
      <pubDate>Sat, 16 Nov 2024 14:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275630#M51946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob and tWaitForFile behaviors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275631#M51947</link>
      <description>Hi
&lt;BR /&gt;About how to run the jobs parallel, please see the related 1779
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 11 Dec 2007 06:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275631#M51947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-11T06:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob and tWaitForFile behaviors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275632#M51948</link>
      <description>Hi shong 
&lt;BR /&gt;I have tested the "Multi thread execution" option as you told me, but it has no effect... 
&lt;BR /&gt;However, does enabling "Multi thread execution" 
&lt;BR /&gt;would make all tRunJob to be started in parallel and how could a "Run if error" or "Run if ok" 
&lt;BR /&gt;link could know when to be triggered in this case ? 
&lt;BR /&gt;In my opinion, the tRunJob should have a "Blocking" property to specificially make this component 
&lt;BR /&gt;wait for the end of the subjob run, rather than a global setup "Multi thread execution" . 
&lt;BR /&gt;I have re-generated all the project and I still have the following generated part of code : 
&lt;BR /&gt;... 
&lt;BR /&gt;currentComponent = "tRunJob_1"; 
&lt;BR /&gt;tds_config.product.Product.runJob(new String[] 
&lt;BR /&gt;{ "--father_pid=" + pid + "", "--root_pid=" + rootPid + "", "--context=Default", 
&lt;BR /&gt;"--context_param ProductConfigFile=" + ProdFile.FilePath, 
&lt;BR /&gt;"--context_param MainConfigFilePath=" + (String) ((String) context.getProperty("MainConfigFilePath")) }); 
&lt;BR /&gt;((java.util.Map) threadLocal.get()).put(errorCode, tds_config.product.Product.errorCode); 
&lt;BR /&gt;if (tds_config.product.Product.errorCode != null || tds_config.product.Product.status.equals("failure")) 
&lt;BR /&gt;{ throw new TRunJobException(); 
&lt;BR /&gt;} 
&lt;BR /&gt;... 
&lt;BR /&gt;Which I think, seems to wait for the sub job completion 
&lt;BR /&gt;and would raise an exception an stop the super job in case the sub job fails 
&lt;BR /&gt;Any idea about why my subjobs are still ran sequentially and if the exception can be avoided ? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Jonathan</description>
      <pubDate>Tue, 11 Dec 2007 14:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-and-tWaitForFile-behaviors/m-p/2275632#M51948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-11T14:35:34Z</dc:date>
    </item>
  </channel>
</rss>

