Two RUNNING events.

book

Article ID: 77067

calendar_today

Updated On:

Products

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

Issue/Introduction

When a job execute and the command contains a '&' ampersand at the end of the command syntax. The Agent sends two RUNNING Events.

For example:

insert_job: test1  job_type: CMD 
command:  /opt/mydir/myscript.sh & 
machine: agent1
owner: [email protected]

Environment

Release: ATSYHA99000-11.3.6-Workload Automation AE-High Availability Option
Component:

Resolution

When a job is submitted with an “&” at the end. Some operating systems will signal the child process has ended before the STATE EXEC message can be read by the agent.
Recommendation: Update the command in the job definition to remove the ampersand (&) at the end of the command.