JS - JobScheduler
  1. JS - JobScheduler
  2. JS-1468

OS-specific kill for JobScheduler Universal Agent Tasks without monitor

    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)

        Issue Links

          Activity

          Hide
          Andreas Liebert (Inactive) added a comment -

          Joacim hat die Befehlszeile verkürzt, sodass nun auch bei API jobs -agent-task-id sichtbar ist. Wir brauchen keine -D property.

          Show
          Andreas Liebert (Inactive) added a comment - Joacim hat die Befehlszeile verkürzt, sodass nun auch bei API jobs -agent-task-id sichtbar ist. Wir brauchen keine -D property.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: