Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
Windows and Linux
Description
Current Situation
- for a shell job without a monitor on the classic agent the <kill_task immediately="yes"/> command kills the shell script but no child processes started by the shell script
Desired Behavior
- for a shell job without a monitor on the classic agent the <kill_task immediately="yes"/> command kills the shell script and all child processes started by the shell script
Workaround
Configure a monitor (pre-/postprocessing Script) for the shell job, e.g.
<job process_class="agent" name="shell_with_javascript_monitor"> <script language="shell"> <![CDATA[ echo hello world! sleep 45 ]]> </script> <monitor name="process0" ordering="0"> <script language="java:javascript"> <![CDATA[ function spooler_process_before(){ return true; } ]]> </script> </monitor> <run_time /> </job>