The child Job keeps running after killing the parent Job in TAC

Problem Description

After deploying and running a parent Job that uses a tRunJob component to call a child Job, and you kill the task of the parent Job, the child Job appears to still be alive and running.

 

Root Cause

The Use an independent process to run subjob option is selected in the tRunJob component, which means that when the parent Job is executed it spawns/creates a new Java process for the child Job.

 

Solution

You need to manually terminate the child Job Java process from the JobServer host.

  1. To end/kill the process, identify the child Job Java process:

    • In Windows: use Task Manager or Process Explorer, and look for the java.exe processes where the Java commandline shows the Job name. Generally, this commandline is long and contains many occurrences of ../../../cache/lib/. After you identify the process, then End the process.

    • In Linux: use ps -ef | grep jobname, and look for the processes where the Java commandline shows the Job name. Generally, this commandline is long and contains many occurrences of ../../../cache/lib/. After you identify the process, then run the kill -9 PID command to kill the associated process ID.

  2. Clear the Use an independent process to run subjob option in the tRunJob component to avoid this issue when killing the parent Job.

Version history
Revision #:
5 of 5
Last update:
‎08-21-2019 09:15 AM
Updated by:
 
Contributors