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

Compare with Current View Page History

Version 1 Next »

How can we configure a holiday setting for the JobScheduler?

Question:

We will be setting up jobs to be run everyday. We also need a mechanism to build in a holiday schedule for the entire year that is not lost on a weekend restart. So I need to configure JobScheduler not to run on say 10 specific days in a year. What is the best way to do this?

Answer:

Holidays can be configured at a global level for all jobs and per job. The resulting holiday dates of both configuration levels are applied. They are not lost on restart as they are part of the configuration file scheduler.xml or the respective run times that are configured in the web interface and stored in a database. Configuring holidays is supported by the graphical JobScheduler Object Editor, JOE.

  1. Holidays for all jobs
      <config>
          <holidays>
              <holiday date="2006-12-25"/>
              ...
              <holiday date="2006-12-26"/>
          </holidays>
          <jobs/>
          <job_chains/>
      </config>
    
  2. Holidays for a specific job
      <job>
        <run_time let_run="no">
            <period single_start = "08:00"/>
            <holidays>
                <holiday date="2006-06-19"/>
                ...
                <holiday date="2006-07-19"/>
            </holidays>
        </run_time>
      </job>
    
  • No labels