...
- a return code of 0 will cause an order should go to the next_state in the job chain.
- a return code between 1 and 5 will cause the order should go to the cleanup_files state.
- a return code between 6 and 9 will cause the order to go to the error state.
A typical implementation for additional job chains:
- a return code of 0 will cause an order should go to the next_state in the job chain and to generate an order for an additional job chain.
- a non-zero return code causes an order to go to the error_state and start a second, error handling job chain.
Alternative commands
The JobScheduler's next_state (true), error_state (false) and add_order commands can also be used to provide a limited control of work flow within a job chain (see the JobScheduler ).
...