User wants to do the following to an application on the ESP Workload Automation system:
Application A has one job and the user now wants to add another job into this application. This original job has a resource in the job itself and now the new job needs to run right after the 1st job without any other job from another application jumping in.
Component: ESP Workload Automation
Release: ALL
Resource can be held only per job, so when 1st job complete, the resource will be put back; if jobs in other application is in the waiting queue, then one of them can grab the resource and run, BEFORE the 2nd job is put into the waiting queue.
Suggested example like below:APPLSTART RESTRES
ESPNOMSG RESDEF RES1 SET MAX(0)
RESOURCE (1,RES1)
ENDJOB
UNIX_JOB DPJOB1
RUN ANY
AGENT AGENTU_01
USER espadmin
SCRIPTNAME /opt/scripts/testscripts/sleep.sh
ARGS 7 0
RELEASE DPJOB2
ENDJOB
UNIX_JOB DPJOB2
RUN ANY
AGENT AGENTU_01
USER espadmin
SCRIPTNAME /opt/scripts/testscripts/sleep.sh
ARGS 7 0
ENDJOB
APPLEND ADDRES
ESPNOMSG RESDEF RES1 SET MAX(1)
ENDJOB
Note: Resource RES1 is defined as an Enterprise Renewable resource with MAX(1).