Table of Contents |
---|
Introduction
This example shows how to configure a job chain which consists of 3 sequential shell jobs and shows how to pass parameters between those jobs.
Downloads
- shell_error.zip - configuration files
Instructions
- Unzip all files in the download into the
./config/live
folder of your JobScheduler installation. - Open the JobScheduler Operating Center, JOC, in your browser using http://scheduler_host:scheduler_port
- Open the JOB CHAINS tab and enable Show orders.
- Find the job chain
samples/shell_error/simple_error_chain
. - Find the order
simple_error_order
, open the order menu and choose Start order now.
...
If the job is fixed during the retries, the order will go to the next_state.
How it works
The main "switch" for controlling error handling of shell jobs is the stop_on_error
attribute of a job. If stop_on_error
is set to yes, the job is blamed for the error and is stopped. If stop_on_error
is set to no, the order is blamed for the error. For more information on stop_on_error
see http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml#attribute_stop_on_error
...