Skip to end of metadata
Go to start of metadata

How to prevent the execution of a job or an order for the last sunday of a month

Question: I would like to know if there a way to prevent the execution of a job or an order at a specific day? For example, a job or an order that runs every day of every month. But I would like to stop it the last Sunday of each month.

Example run-time configuration to prevent the execution of a job or an order for the last sunday of a month  Expand source

How to prevent the execution of a job or an order at a specific monthday?

Question: How to run a job or an order every day but stop it the 15th of each month?

Example run-time configuration to run a job or an order every day but stop it the 15th of each month  Expand source

How to stop a job or an order for a period that is not previously defined?

Question: How can I stop a job or an order for a specific period that is not previously defined? Example: my order is a daily order. But on e.g. 2013-05-01 I have a maintenance on the machine. So I would like to stop one chain or all the chains.

To prevent the execution of a job or an order at a specific (not predefined) day you can define a holidays file, e.g. in $SCHEDULER_DATA/config/live/holiday.xml like this:

Example holiday configuration for a holiday file  Expand source

 

and include it into your job(s) and order(s) with

Example run-time configuration for maintenance day  Expand source

 

Referencing a central configuration file for holidays as for the above holiday.xml would be effective for all jobs and orders using this file. Modifications to that file will be applied on-the-fly by JobScheduler.