Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections to text

 

The JobSchedulerSSHJob job knows some parameter to handle the stderr and the exit codeA number of parameters are available for handling stderr and exit code in the JobSchedulerSSHJob job. These are:

  • ignore_stderr (default=false)

The job checks if any output to stderr has been created by a command that is being executed on the SSH server and reports this as an error. Should the value true be specified for this parameter then output to stderr will not be reported as an error by the JobScheduler.

...

This parameter configures one or more exit codes which will not be treated as errors. Multiple exit codes can be defined comma seperated separated or using ranges. Examples: 255 2,3,4,100 4,50-60,210-220

  • raise_exception_on_error (default=true)

If any output to stderr has been created or the exit code is unequal 0 then the job usually throws an exception. Whenever the job throws an exception then its task ends with the exit code 1. If the job is started by an order and an exception is thrown then the order goes to the error node of the job chain. Should this value false be specified, then it prevents an exception is thrown, the task has the exit code of the command that is being executed on the SSH server and an order goes to the next node of the job chain.

...

ls _unknown_folder_; exit 5;

This commmand command has a stderr = ls: _unknown_folder_: No such file or directory and the exit code 5.

...