You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

We need to be able to define a repeat job that does not go beyond a specific date i.e. does not repeat forever

Example

  • I would like a job that would repeat until, say, 01/01/2013.

Solution

First of all, you need to work with schedules. Schedules are run_times that have a name and can be referenced from jobs or orders.

Create a NeverRun schedule which has a single start in the past, so it will never run. See the NeverRun.schedule.xml file in our download.
Assign this schedule to your job or order: edit the runtime parameter and remove everything until you just have

 <run_time schedule="NeverRun"/>.

Now the trick is that you can replace schedules with other schedules for a certain period. So you can create your repeat schedule which will replace the NeverRun schedule until 01/01/2013. See the Repeat.schedule.xml file in our download.

  • No labels