WORK IN PROGRESS
Introduction
Starting from JobScheduler release 1.9.0, the JobScheduler offers inbuilt capability to handle exit codes from jobs. The new feature make it possible to manage flow of the job chain depending upon return code from a job. Also now its possible to start a order outside of the job chain depending upon the return codes.
Issues
This feature support is subject to the following issues:
Control the workflow the job chain by exit codes
For earlier versions it was not explicitly possible to configure next state of depending upon exit code of job node. Now order can be set to pass to different states depending upon return code e.g. if return code is 0 then order should go to next state but if return code is between 1-5 then order should go to state cleanup_files
Start an order depending upon the result of a job chain node