Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

<span ih1. "sunday">

How to prevent the execution of a job

...

or an order for the last sunday of a month

<span style"color:#A52A2A">
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 ? For example, I have a job which run or an order that runs every day of every month. But I would like to stop it the last sunday Sunday of each month. How can I do this?
</span>it is a little bit tricky

Code Block
languagexml
titleExample run-time configuration to prevent the execution of a job

...

or an order for the last sunday of

...

a month

...

collapsetrue

...

<run_time>

...


  <weekdays>
    <day day="1 2 3 4 5 6">

...


      <period single_start="13:00"/>

...


    </day>

...


  </weekdays>

...


  <monthdays>
    <weekday day="7" which="-1">

...


      <period single_start="13:00"/>

...


    </weekday>

...


    <weekday day="7" which="-2">

...


      <period single_start="13:00" when_holiday="ignore_holiday"/>

...


    </weekday>

...


    <weekday day="7" which="-3">

...


      <period single_start="13:00" when_holiday="ignore_holiday"/>

...


    </weekday>

...


    <weekday day="7" which="-4">

...


      <period single_start="13:00" when_holiday="ignore_holiday"/>

...


    </weekday>

...


  </monthdays>

...



  <holidays>
    <weekdays>
      <day day="7"/>

...


    </weekdays>

...


  </holidays>

...


</run_time>

...

<span ih1. "specificday">

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

...

monthday?

Question: <span style"color:#A52A2A">
How to run a job or an order every days day but stop it the 15th of each month? </span>

{{

...

Code Block
languagexml
titleExample run-time configuration to run a job or an order every day but stop it the 15th of each month
collapsetrue
<run_time>

...


  <monthdays>
    <day day="1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31">

...


      <period single_start="13:00"/>

...


    </day>

...


  </monthdays>

...


</run_time>

...

<span ih1. "holyday">

How to stop a job or an order for a

...

period that is not previously defined?

Question: <span style"color:#A52A2A">
How can I stop a job or an order for a specific period which that is not define previously defined?
Example Example: my job order is a daily joborder. But tomorrow on e.g. 2013-05-01 I have a maintenance on the machine. So I would like to stop one chain or all the chainchains.
</span>

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:

Code Block
languagexml
titleExample holiday configuration for a holiday file
collapsetrue
<holidays>
  <holiday day="2013-05-01"/>
</holidays>

 

and include
it into your job(s) with
{{<source>
<holidays>
<include and order(s) with

Code Block
languagexml
titleExample run-time configuration for maintenance day
collapsetrue
<run_time>
  <period  single_start="12:00"/>
  <holidays>
    <include live_file="/holiday.xml"/>

...


  </holidays>

...


</run_time>

 

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.

 source>
}}If it is necessary to define a day for maintenance you have to put it into holiday.xml and it would take effect for all jobs using this file via live_file="/holiday.xml" (caution: you have to restart the scheduler if you have changed holiday.xml).
</span>