search cancel

What happens to running jobs if the agent service where they are running is shut down?


Article ID: 244403


Updated On:


CA Workload Automation AE


If there a jobs currently running on an agent and the agent service is shut down, what happens to the running jobs?


Release : 11.3.6/12.0/12.0.01

Component : AutoSys Workload Automation


Stopping the agent will not kill any jobs that are running. If a running job is still running on the machine when the agent is restarted, the agent regains control of the job and will report back completion as normal when it occurs. However, if a running job completes while the agent is down, or a cold restart of the agent is performed, the agent will not be able to regain control of the job when it is brought back up. Therefore, the agent will report back a failure for the job, even if it completed successfully. The failure will look like this in the Scheduler log...

[06/21/2022 23:24:35]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: FAILURE         JOB: test_job MACHINE: agent_machine   EXITCODE:  1
[06/21/2022 23:24:35]      <Lost control>