When using sendevent -E KILLJOB -J jobname, how does AutoSys kill the Windows process?

book

Article ID: 49912

calendar_today

Updated On:

Products

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

Issue/Introduction

Description:

When using sendevent -E KILLJOB -J jobname, could you please explain specifically how AutoSys kills the Windows processes?

Solution:

To terminate a process on windows, AutoSys release 4.5.x uses "TerminateProcess" windows API function.

The Workload Automation AE Agent release 11.3 makes use of "EnumProcesses" and "TerminateProcess" API's to kill the process tree.

The Agent gets the list of child processes using EnumProcesses and then attempts to kill each process using TerminateProcess API.

Environment

Release: ATSAGE99000-11.3-Workload Automation AE-Remote Agent
Component: