Does the term_run_time attribute trigger a KILLJOB event?
search cancel

Does the term_run_time attribute trigger a KILLJOB event?

book

Article ID: 214850

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

When the term_run_time attribute is added to a job, does it trigger a KILLJOB event when the time arrives?

Environment

Workload Automation AE (AutoSys)

Resolution

The term_run_time attribute will trigger a KILLJOB message that is sent to the agent when the time arrives. However, you will not see it in the autorep report as a KILLJOB event. It is the CHK_TERM_RUNTIME event that triggers the KILLJOB message to the agent. Here is what it looks like in the Scheduler log...

For a job that is still running when the term_run_time arrives, you see a CHK_TERM_RUNTIME event processed and then the KILLJOB connection right after it...

[05/11/2021 17:16:29]      CAUAJM_I_40245 EVENT: CHK_TERM_RUNTIME  JOB: test_trt
[05/11/2021 17:16:29]      CAUAJM_I_10082 [agent_machine connected for KILLJOB test_trt 168.9402.1]
[05/11/2021 17:16:30]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: TERMINATED      JOB: test_trt        MACHINE: agent_machine
[05/11/2021 17:16:30]      <Aborted, Signal 2>
[05/11/2021 17:16:31]      CAUAJM_I_40245 EVENT: ALARM            ALARM: JOBTERMINATED    JOB: test_trt        MACHINE: agent_machine

It is basically the same thing that occurs when issuing a KILLJOB event like this...

[05/11/2021 17:22:54]      CAUAJM_I_40245 EVENT: KILLJOB          JOB: test_trt
[05/11/2021 17:22:54]      CAUAJM_I_10082 [agent_machine connected for KILLJOB test_trt 168.9403.1]
[05/11/2021 17:22:55]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: TERMINATED      JOB: test_trt        MACHINE: agent_machine
[05/11/2021 17:22:55]      <Aborted, Signal 2>
[05/11/2021 17:22:56]      CAUAJM_I_40245 EVENT: ALARM            ALARM: JOBTERMINATED    JOB: test_trt        MACHINE: agent_machine