When a job execute and the command contains a '&' ampersand at the end of the command syntax. The Agent sends two RUNNING Events.
insert_job: test1 job_type: CMD
command: /opt/mydir/myscript.sh &
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.