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

OS-specific kill for JobScheduler Universal Agent Tasks without monitor

    XMLWordPrintable

    Details

      Description

      Current Situation
      JUA can only kill the main process of a job but not it's child processes

      Desired Behaviour

      • A Kill for a JUA task kills child processes as well
      • This requires an OS-specific implementation
        • JUA starts every task (shell or java) with an agent task id and sets an additional parameter -agent-task-id=...
        • A command line parameter -kill-script sets a script for killing tasks
        • If a task needs to be killed (because of a kill task command or timeout)
          • JUA executes the script found in -kill-script and adds the parameter -kill-agent-task-id=...
            • The script searches for the process that was executed with -agent-task-id=... and kills the process and it's children
          • If -kill-script is not set, JUA performs a simple java kill (which does not kill the children of the process)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: