Unix Agent in mode Batch job remains in status Active after :EXIT 0
search cancel

Unix Agent in mode Batch job remains in status Active after :EXIT 0

book

Article ID: 226689

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

On Agents Unix/Linux in mode batch (start_type=batch), JOBS with :EXIT X in the Process or Preprocess have a different behavior compared to mode fork.

For example, if the job contains :EXIT 0 in the Process or Preprocess, the results are:

  1. JOBS.UNIX.EXIT0_PROCESS - job finishes in ENDED_VANISHED - disappeared (different behavior than in fork)
  2. JOBS.UNIX.EXIT0_PREPROCESS - Job remains in Active Status (different behavior than in fork) with the following in Activation log:
2021-08-30 17:47:40 - U00020411 The command 'EXIT 0000000000' in 'JOBS.UNIX.EXIT0.PREPROCESS(1)', line '00002' stopped the generation of this task.

Environment

Release : 12.x

Component : AUTOMATION ENGINE

Subcomponent: Agent Unix

Cause

This has been confirmed to be a limitation/problem of the batch mode of the Unix Agents.

Resolution

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

Fix version:
Component(s): Agent Unix

Automation.Engine 21.0.4 - Available

Automation.Engine 12.3.9+HF.2 - Available