Page History
...
- When a job should be killed then the Agent first sends a SIGTERM signal.
- This signal can be ignored or can be handled by a job. For shell scripts a
trap
can be defined to e.g. perform cleanup tasks such as disconnecting from a database or removing temporary files.
- This signal can be ignored or can be handled by a job. For shell scripts a
- The job configuration includes the Grace timeout setting:
- The Grace Timeout duration is applied after a SIGTERM signal (corresponding to
kill -15)
has been sent by the Agent. This allows the job to terminate on its own, for example after some cleanup is performed. - Should the job still run after the specified Grace Timeout duration then the Agent sends a SIGKILL signal (corresponding to
kill -9
) that aborts the OS process.
- The Grace Timeout duration is applied after a SIGTERM signal (corresponding to
The OS commands used by the Agent to send signals include:
Termination signals
Signal Command SIGTERM
/bin/kill <pid>
SIGKILL
/bin/kill -KILL <pid>
- If required for your Agent platform then the commands can be adjusted, see JS7 - Agent Configuration Items
Job scripts frequently spawn child processes that have to be killed accordingly to their parent process.
...
Overview
Content Tools