ESP Workload Automation

 View Only

  • 1.  Run a job automatically after 30 minutes

    Posted Sep 26, 2024 08:45 AM
    Edited by Jason McClellan Sep 30, 2024 09:36 AM

    Hi Team,

    I want to run a job automatically after every 30 minutes if it fails. Where it should auto complete(if in failed state/waiting state) at 7:55 AM before next load at 8:00AM. Appl loads at 8:00. how this can be accomplished?
    I do have definition as below,

    Job JOB1
    Run daily
    Reldelay 30
    Release Retrigger_Job  Cond(not RC(0))               --> If fails     
    EndJob

    Job Retrigger_Job  task selfcompleting
    Run daily
    Reldelay 30                                                                -->  Again coding Reldelay of 30
    espcmdnm rerunm rootjobs(JOB1+)
    abandon submission 7:55                                         --> To stop retriggering at 7:55
    ENDJOB                                     

    Job Complete_Job   task selfcompleting
    run daily
    Delaysub 7:55
    espcmdnm AJ Retrigger_Job complete
    espcmdnm AJ Job1 complete
    ENDJOB

     My question is coding "reldelay of 30 in retrigger job"  works or not as I have used "espcmdnm rerunm rootjobs(JOB1+)"

    Thanks in advance..



  • 2.  RE: Run a job automatically after 30 minutes

    Broadcom Employee
    Posted Oct 01, 2024 11:10 AM

    Hi Vinothini,

    As the replies to the post below, RELDELAY won't work when RERUNM is used:
    https://community.broadcom.com/discussion/reldelay-override-issue

    And Jonas has provided a way to reset the delay time by adding a new SELFCOMPLETING TASK.

    It seems to me you want to wait for 30 minutes before resubmitting the failed JOB. So the following example in our "Example Cookbook" maybe helpful to you:
    https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/examples-cookbook/resubmit-job-5-minutes-after-it-fails.html

    Hope this helps,

    Lucy