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

You can configure that a job is stopped after an error.

Once the job has been stopped it will not start again when specified in its run time / schedule.

It must first be unstopped before it will starts at the next start time specified in its schedule.

For this you have the Unstop function in the job menu in JOC (JobScheduler Operations Center).

Example

'Consider the following exit5 job which throws an error.

Further it has a schedule to start every 10 minutes.

In XML the ./config/live/example/exit5.job.xml file will look like:

Code Block
languagehtml/xml
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml job] stop_on_error="no">
     <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script] language="shell">
         <![CDATA[
 exit 5
        ]]>
     </script>
     <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/run_time.xml run_time]>
         <period absolute_repeat="00:10" begin="00:00" end="24:00"/>
     </run_time>
 </job> 

When the job is stopped you can reschedule it to use the unstop function in JOC: