How can I see if a POJO job is running on the agent side ?
search cancel

How can I see if a POJO job is running on the agent side ?

book

Article ID: 233781

calendar_today

Updated On:

Products

CA Workload Automation AE - System Agent (AutoSys)

Issue/Introduction

How can I see if a POJO job is running on the agent side ?

I may understand that a running POJO/HTTP job does not have any cybspawn on the concerned agent …

 

Environment

Release : 12.0

Component : Workload Automation System Agent

Resolution

The scheduler will have the correct status of the job.
If it is in starting the the job was submitted to the agent.
If it is running then the agent started the job.

Another way would be to check on the system agent itself by checking out the logs and/or spool files.
If a spool file exists that mean the agent started the job and the thread is running.
Even an spool file with just the header means something.
It is up to the pojo developer to do some logging after that.

The way the agent works if it cannot start the thread it will return a SUBERROR.
If the thread starts running it will always return a EXEC.
If the thread throws an exception it will always send a FAILED.

There are only two states for threads either it is running or not.

For POJOs there are only two ways to exit.
Either throw an exception or return from the method.

This is not the case for a command job, there are many ways to fails or go wrong.
Both in the script or in the agent itself.