On CA Automic Workload Automation Agents the Agent resource (Max. Resources Jobs) is not released

Document ID : KB000084323
Last Modified Date : 23/05/2018
Show Technical Document Details
Issue:
The Agent resources that a CA Automic Workload Agent provides for Jobs (Max. Resources Jobs) are not freed under certain conditions. 

The following setup must be given, according to tests, so that the maximum number of resources (Max. Resources Jobs) is not set back: 
  • The Job has a HostGroup entered
  • The Hostgroup parameters must be either set to Any, Next Listed or Load Dependent
  • "Generate at runtime" is set on the Job
  • The Job uses a script with the statement "ON_ERROR ABEND"
  • The Job uses the script function "ACTIVATE_UC_OBJECT" for a starting any object type (e.g.: JOBS, SCRI,…) 
  • The activated task has "Generate at runtime" not set 
  • The activated Job fails
  • The job uses the script function "EXIT" when the follow-up JOBS has a certain status (it does not matter if the follow-up JOBS ends ok or fails)
When all these options are met the Agent resources are not freed and set eventually to 0. 

Therefore any job activated after the defined Agent resources are used the Jobs will stay in the activity window in a status of "Waiting for the host of an AgentGroup". In this case only a restart of the Agent helps to free the resources. 
Environment:
OS Version: N/A
Cause:
Agent resources are not released after the end of a job. This happens if agent groups are used in combination with the script function ACTIVATE_UC_OBJECT.
Resolution:
Update to a fix version listed below or a newer version if available.

Component(s):
Automation Engine

Fix Version(s):
Automation Engine 12.1.2 - planned release date: 2018-05-23
Additional Information:
Workaround :
-) Do not use a HostGroup 
-) Do not set "Generate at runtime" in the Job 
-) Do forgo to use the script function "EXIT" 
-) When a HostGroup is used set the parameter either to All Active or First
-) Monitor the used "Job res. max" and restart the Agent if necessary.