Defining automatic rerun for a job that ends Not OK example
This example describes how to define an automatic rerun for a job that ends not OK, which triggers an alternative job and sends an alert.
To automatically rerun a job that ends Not OK:
- In the Scheduling tab, Rerun Settings area, select the Cyclic checkbox and then click Set.
- The Cyclic Job Run Times window appears.
- In the Rerun Interval section, select Rerun Every 1 minute and then in the All Intervals are from Job's field, from the dropdown list select End.
- Click OK.
- In the Maximum Reruns field, select 1 for the number of reruns.
- From the Actions tab, click
to add an On-Do Action.The On Do Actions window appears.
- In the On field, from the dropdown list select Job ended Not OK.
- In the Do field, select Do Rerun.
- Click Add Do and then in the Do field from the dropdown list, select Order Job (ignore Scheduling Criteria) and then type the following:
- Folder: folder1
- Job Name: AltJob
- Date: Order Date
- Click Add Do and then in in Do field, from the dropdown list, select Notify and then add the following:
- Destination: Alerts Window
- Message: Rerun JobX failed. Alternate job forced.
- Urgency: Urgent