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

kill_task.sh script does not work for child processes

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.12, 1.12.1, 1.12.2, 1.12.3, 1.12.4, 1.12.5, 1.12.6, 1.12.7
    • 1.12.8
    • None
    • None

    Description

      Current Situation

      • A shell job executed for Agents with Unix includes a "sleep" command.
      • When the job is killed from the JOC Cockpit (kill task immediately operation) then the Agent task is killed, the child task running the "sleep" command is not killed.
      • The problem seems to be related to the kill_task.sh script that does not traverse child pids when executing the line
        for _child in `$psTree | egrep " $1\$" | awk '{ print $1 }'`; do
        

        as this loop does not return any child pids.

      Desired Behavior

      • All descendants of tasks should be reliably killed by the kill_task.sh script.

      Patch

      • A patch for JobScheduler Agent 1.12.7 is here available.
        • Stop JobScheduler Agent
        • Copy the downloaded jar file to ./lib/patches
        • Start JobScheduler Agent

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ap Andreas PĆ¼schel
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: