Prevent overlapping cyclic job executions in ESP Workload Automation
search cancel

Prevent overlapping cyclic job executions in ESP Workload Automation

book

Article ID: 449110

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

High-frequency cyclic jobs (e.g., every 2 minutes) in ESP Workload Automation may overlap if the execution time of a previous generation exceeds the trigger interval. This behavior results in a buildup of queued jobs.

Resolution

ABANDON SUBMISSION coded at lob level will bypass job if previous job is still running.

Example is for a cyclic job to run every 2 minutes between 2am and midnight.

 APPL ######## WAIT                             
 INVOKE '########.ESP.PROCS(#GLOBALS)'          

JOB PBD909M.MIN                                    
  RUN TODAY                                          
  ABANDON SUBMISSION REALNOW PLUS 2 MINUTES          
  IF ESPATIME < '02.00' THEN NORUN TODAY             
  IF ESPATIME > '23.59' THEN NORUN TODAY             
ENDJOB                                               

ABANDON SUBMISSION Statement: Bypass Job Submission

Additional Information

Summary of Tests:

APPLGEN 1                  Initial test

APPLGEN 2 to 6          Job runtime 1 minute

APPLGEN 7                  Didn’t trigger as Event was Suspended

APPLGEN 8 to 13         Job runtime 3 minutes

APPLGEN 14 to 18      Job runtime 1 minute with ABANDON SUBMISSION

APPLGEN 19 to 30      Job runtime 3 minutes with ABANDON SUBMISSION