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

Compare with Current View Page History

« Previous Version 4 Next »

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

If a job is stopped then it doesn't start because of its schedule.

You must unstop the job then it starts at the next start time according to its schedule.

For this you have the Unstop function in the job menu in JOC.

Example

We create a job exit5 which throws an error.

Further it has a schedule to start every 10 minutes.

The above example creates the file ./config/live/example/exit5.job.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.

  • No labels