Details
-
Feature
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Desired Behavior
- The JobScheduler Universal Agent should be terminated by the following actions:
- abort: the Agent will kill all running tasks and will terminate immediately
- terminate: the Agent will not start new tasks, existing tasks can continue and the Agent will terminate after all tasks have completed
- optionally a SIGTERM can be sent to the tasks
- terminate with timeout:
- the behavior is approx. the same as in
JS-1163 - the Agent sends all tasks a SIGTERM command and will wait for the specified timeout. Should any task not terminate within the specified timeout then it will be killed with a signal SIGKILL.
- the behavior is approx. the same as in
- The JobScheduler Universal Agent accepts json commands that can be sent by any HTTP client:
- Operation: abort immediately
- Client sends:
{ "$TYPE": "AbortImmediately" }
- This correspondes to the command that is used for a Master: <modify_spooler cmd='abort_immediately'/>
- Client sends:
- Operation: terminate
- Client sends:
{ "$TYPE": "Terminate", "sigtermProcesses": false }
- This correspondes to the command that is used for a Master: <modify_spooler cmd='terminate'/>
- Client sends:
- Operation: terminate with timeout
- Client sends:
{ "$TYPE": "Terminate", "sigtermProcesses": false, "sigkillProcessesAfter": 15 }
- This correspondes to the command that is used for a Master: <modify_spooler cmd='terminate' timeout="15"/>
- Client sends:
- Operation: abort immediately
Maintainer Notes
- Commands to terminate an Agent can be sent
- via any client application that sends the command with an HTTP request
- via the start script of the Agent
Attachments
Issue Links
- is required by
-
JS-1401 Add commands to start script to terminate JobScheduler Universal Agent
- Released
- relates to
-
JS-1291 JobScheduler Universal Agent
- Released
-
JS-1410 JobScheduler Universal Agent web services return information about current state
- Released
-
JS-1480 JobScheduler Universal Agent web services
- Released
(1 mentioned in)