Task defined in EXECUTE_ON_START is executed before agent is onboarded
search cancel

Task defined in EXECUTE_ON_START is executed before agent is onboarded

book

Article ID: 401459

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Task defined in EXECUTE_ON_START is executed before agent is onboarded, as a result the task fails intermitently in case for example the script was trying to modify some agent properties like with SET_UC_SETTING

For example, on this case, in line 54 of SCRIPT_EXECUTE_ON_START there was an instruction to modify the WORKLOAD_MAX_JOB value of the agent that had just started

:  SET_UC_SETTING WORKLOAD_MAX_JOB, &AGENT#, &MAX_JOB#

But when the WP that processed this script had not been informed yet that the agent was already active, the script would fail with the following kind of error:

U00020509 Runtime error in object 'SCRIPT_EXECUTE_ON_START' line '00054': Host 'AGENTNAME' is not active. The host has to be active for this function.

Environment

Automation Engine any version

Cause

DE170843: the processing of Agent's onboarding was done by regular WPs, with this change the PWP will be responsible for it so this situation can never be encountered anymore.

Resolution

Update to a fix version listed below or a newer version if available.

Fix version:
Component(s): Automation Engine
Automation.Engine 24.4.2 - Planned release October 2025

Additional Information

Public Description: A problem has been solved where a task defined in EXECUTE_ON_START in a host characteristics variable is executed before the agent was fully onboarded.