How to terminate an old run of a job?
search cancel

How to terminate an old run of a job?

book

Article ID: 116735

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction



We have an old run of a job showing in WCC with a status of 'running' from back in March. 

The job has run every day since then but still shows the old status of running.  

Is there any way to change this status from this specific job run? 

Environment

Release:
Component: ATSYS

Resolution

The easiest and fastest way to get rid of these old Job runs stuck in Running status during several months while the script is no longer running is to:


-  extract the job definition with 'autorep -J <job> -q'

-  delete it with 'jil , delete_job: job'

-  insert it again with jil with the output of the previous  'autorep -J <job> -q'
 

Additional Information

Indeed, before doing these steps,

- ensure the current run of the job has finished

- check also if there is no dependent job which might be executed as soon as the job is deleted

- if there are job dependent conditions, put these jobs on hold

- to check job dependencies, use the job_depends utility at  https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-commands/monitor-and-report-on-workload/job_depends-command-generate-detailed-reports-of-job-dependencies-and-conditions