I’d like to create a master holiday schedule that I could associate with each job in order to minimize job maintenance on a year to year basis. I thought I could do this via the schedule functionality, but once I specify a schedule I lose the ability to define the job’s start time. Alternatively, I looked at the job function’s Non-Working definition screen and there is a Include from Hot Folder option, but nothing happens when I hit the New button.
Could you provide a pointer to documentation on how best to handle the holiday calendar issue and what the function is for the schedule definitions?
1. HOLIDAYS
There are several ways to set holidays
- Use JOE and open the "Run Time -> Non Working Days" function on a job or order.
- Here you can add some days.
- In this case the holidays are only used by this job/order
- Create a file (e.g. ./config/live/holidays.xml) with e.g. the following content:
- <?xml version="1.0" encoding="ISO-8859-1"?>
<holidays>
<holiday date="2016-03-15"/>
</holidays> - Use JOE and open the "Run Time -> Non Working Days" function of a job or order.
There you can include this file to the job/order.
The checkbox "from Hot Folder" has to be active.
Type holidays.xml in the combobox and click "Add File"
- In this case the holidays are used by each job/order where you have include the file.
- Configure the holidays in the ./config/scheduler.xml
- In this case the holidays are used by all jobs and orders.
- But note that changes in the scheduler.xml requires a JobScheduler restart.
- You can use JOE to configure the scheduler.xml
2. SCHEDULES
You can specify the run time directly in a job or order or you create a schedule as a separate object and assign it to the run time of a job or order.
If you have multiple jobs or orders which should have always the same run time then it is recommended to assign a schedule object.
If you want to change the run time for all these jobs or orders then you have only to change the run time in the schedule.
Further a schedule can have a substituted schedule. The substituted schedule can have a different run time and is valid for a specific period which is useful e.g. for a maintenance window.