In ESP Proc, the TASK below is used to select JOBB when JOBA meets the criteria:JOB GOOD TASK SELFCOMPLETING
RUN DAILY
AFTER JOBA COND(STEPRC('stepname',0))
ESPNOMSG ADHOC APPL(xxxx.0) ADHLIST(JOBB)
ENDJOB
However the ADHOC command sometimes doesn't work, and JOBB is not selected.
Component: ESP Workload Automation
Release: ALL
This is a timing issue. The TASK completion will wait for the ADHOC command being queued to ESP, won't wait for the command being executed.
Therefore the related ESP application may have been completed BEFORE the ADHOC command execution.
Solution:
#1 Add the APPLEND like below, so that the application will stay for 1 minute after all jobs are complete:
APPLEND WAIT
RELDELAY 1
ENDJOB
#2 Use AJ INSERT command instead of the ADHOC command.