<?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: tDie component doesn't kill the job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319175#M89451</link>
    <description>Hi, 
&lt;BR /&gt;Your tSendMail_3 is linked to no component, so when your job is running it makes a parallel exeuction, meaning both of the "subjob" are exectuing. If your tSendMail_3 is supposed to be used when all the treatement have passed, link it with a onSubJobOk and then the mail will be only send when all the treatments have successed. Furthermore your process is not killed because you don't use a tcatcher component, you need to use it to catch the log, the job will be killed when the message is treated by the tcatcher. 
&lt;BR /&gt;If your need to send a mail when there is an error in your job, try as follow: 
&lt;BR /&gt;prejob --&amp;gt; OnComponentOk --&amp;gt; tOracleConnection 
&lt;BR /&gt; | 
&lt;BR /&gt; OnSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tFTPConnection 
&lt;BR /&gt; | 
&lt;BR /&gt; OnSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tsendMail_3(success!) 
&lt;BR /&gt;tlogcatcher----&amp;gt;tsendmail_1(fail....) 
&lt;BR /&gt;I only use tlogcatcher to send me a mail when my job fail (with no tdie), always worked 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;. But of course you can put tdie compoennt if you want !</description>
    <pubDate>Thu, 10 Nov 2011 23:04:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-10T23:04:52Z</dc:date>
    <item>
      <title>tDie component doesn't kill the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319174#M89450</link>
      <description>I have a very simple process as follows 
&lt;BR /&gt;****************************************************************************************************** 
&lt;BR /&gt;prejob --&amp;gt; OnComponentOk --&amp;gt; tOracleConnection --&amp;gt; OnSubJobError --&amp;gt; tSendMail_1 --&amp;gt; OnComponentOk --&amp;gt; tDie_1 
&lt;BR /&gt; | 
&lt;BR /&gt; OnSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tFTPConnection --&amp;gt; OnSubJobError --&amp;gt; tSendMail_2 --&amp;gt; OnComponentOk --&amp;gt; tDie_2 
&lt;BR /&gt; 
&lt;BR /&gt;tSendMail_3 
&lt;BR /&gt;****************************************************************************************************** 
&lt;BR /&gt;I have the tSendMail_3 sitting alone to test if the tDie process kills the process or not. 
&lt;BR /&gt;I purposefully put in the wrong password for the tFTPConnection, and I can see the message from tDie_2 in the log, but the process does not get killed and I still get the email from tSendMail_3. 
&lt;BR /&gt;I saw the thread 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCr3xCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/kill-the-entire-job-when-sub-job-dies-multi-thread-enabled/td-p/113130&lt;/A&gt; but, I do not want to use 'Exit JVM' option, but also do not know how to code the tJava component. 
&lt;BR /&gt;Please help!</description>
      <pubDate>Sat, 16 Nov 2024 12:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319174#M89450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: tDie component doesn't kill the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319175#M89451</link>
      <description>Hi, 
&lt;BR /&gt;Your tSendMail_3 is linked to no component, so when your job is running it makes a parallel exeuction, meaning both of the "subjob" are exectuing. If your tSendMail_3 is supposed to be used when all the treatement have passed, link it with a onSubJobOk and then the mail will be only send when all the treatments have successed. Furthermore your process is not killed because you don't use a tcatcher component, you need to use it to catch the log, the job will be killed when the message is treated by the tcatcher. 
&lt;BR /&gt;If your need to send a mail when there is an error in your job, try as follow: 
&lt;BR /&gt;prejob --&amp;gt; OnComponentOk --&amp;gt; tOracleConnection 
&lt;BR /&gt; | 
&lt;BR /&gt; OnSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tFTPConnection 
&lt;BR /&gt; | 
&lt;BR /&gt; OnSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tsendMail_3(success!) 
&lt;BR /&gt;tlogcatcher----&amp;gt;tsendmail_1(fail....) 
&lt;BR /&gt;I only use tlogcatcher to send me a mail when my job fail (with no tdie), always worked 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;. But of course you can put tdie compoennt if you want !</description>
      <pubDate>Thu, 10 Nov 2011 23:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319175#M89451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-10T23:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: tDie component doesn't kill the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319176#M89452</link>
      <description>Or3l,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I did not try the tLogCatcher, but linking the tSendmail_3 to the main job works, however, I would imagine that since the tDie is in the Prejob, the processes after PreJob would not run, if error occurs in PreJob. I guess that is not how it is designed to work?</description>
      <pubDate>Fri, 11 Nov 2011 13:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDie-component-doesn-t-kill-the-job/m-p/2319176#M89452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T13:40:18Z</dc:date>
    </item>
  </channel>
</rss>

