Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1421

The <kill_task immediately="yes"> command on a shell task without monitor on classic Agent kills all children of the shell task

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.9.4, 1.10
    • 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>
      

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              al Andreas Liebert (Inactive)
              Andreas Liebert Andreas Liebert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: