RESDEF A
Resource A Enterprise Renewable
* * Max=1 Avail=1
ESP PROC with 2 jobs:
NT_JOB JOB1
AGENT %AgentName
RESOURCE (1,A)
RUN ANYDAY
ENDJOB
NT_JOB JOB2
AGENT %AgentName
RESOURCE (1,A)
RUN ANYDAY
ENDJOB
Simulation:
JOB TYPE-JOBNAME---HC-RELEASES
NTJob JOB1 0 (NONE)
NTJob JOB2 0 (NONE)
Trigger on Hold
Job Name CCode Job Status
JOB1 - APPLHOLD
JOB2 - APPLHOLD
Release Application Hold - JOB1 runs, JOB2 RESOURCE WAIT
Job Name CCode Job Status
JOB1 - Executing at <Agent Name>
JOB2 - Waiting for Resources
When JOB1 completes RESOURCE is automatically returned and JOB2 gets RESOURCE and runs
Job Name CCode Job Status
JOB1 0 COMPLETED AT 13.15 09 APR
JOB2 - Executing at <Agent Name>
ESP Job Output:
ESP6260I ResoMGR: Job JOB1 in Appl <APPL Name.Gen> Resources Satisfied
ESP6260I ResoMGR: Job JOB2 in Appl <APPL Name.Gen> Resources Satisfied
------------------------------
Senior Systems Analyst
UPS
United States
------------------------------
Original Message:
Sent: 04-09-2021 11:41 AM
From: Keith Grizzell
Subject: Enterprise Renewable Resources Questions
Hello, I have a question on using the Enterprise Renewable resources. I have several jobs set up to only run when my resource is available. This works fine for the first job but after the first job runs it sets the resource to "0" and the subsequent jobs won't run because the resource is set to "0". I have to go in and manually reset the resource to 1 after each job to keep the string of jobs moving. The end game to this is we have a group that wants to do deploy's to their server. Making the jobs dependent on resources would allow me to keep any jobs from running while they are deploying. I have self completing tasks set up to set the resource to "0" before they deploy and another to set it back to 1 after they are done. I just have the issue that each time a job runs it sets the resource to "0" and stops the string and I have to set it back to 1 for the next job. Can someone shed some light on what I maybe missing? Is there a way to keep the rest to "0" form happening after each job?
NT_JOB OSMPAWE.SIT
SUBAPPL POLICY
RESOURCE (1,POLICYRES)
AGENT VMINAPS01
oper resdef policyres list
Resource POLICYRES Enterprise Renewable
* * Max=0 Avail=1
------------------------------
[Designation]
Grange Insurance
[City]
------------------------------