WA Agent: Unix Jobs that exit with 255 and Windows jobs that exit with 127 still show running.
search cancel

WA Agent: Unix Jobs that exit with 255 and Windows jobs that exit with 127 still show running.

book

Article ID: 42201

calendar_today

Updated On:

Products

Workload Automation Agent

Issue/Introduction

When specifying an exit 255 in a Unix script or exit 127 in a Windows script, the scheduling manager shows the job remains in a running/exec state.

 



Environment

Release: WKLASE99000-11.3-Workload Automation-Agent SE
Component:

Cause

This is expected behaviour as documented in the Workload Automation Agents

Reference the parameter oscomponent.noexitcode which states: 

Specifies the exit code that tells the agent not to send a completion code to the scheduling manager host.

Default: 255 for UNIX, 127 for Windows

 

 

Resolution

Set the oscomponent.noexitcode in agentparm.txt as per the OS type.


Windows: 
oscomponent.noexitcode=128
UNIX/Linux: oscomponent.noexitcode=256

 

Additional Information

See WA Agent documentation for more information.