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

Compare with Current View Page History

Version 1 Next »

Trigger Error Conditions

Question:

Can a job call database procedures or a successor job for error handling?

Answer:

Within job chains an error state is assigend to a job and it is up to you to implement a job for error handling. Without specific job for error handling JobScheduler can be configured to send mails with an attached log file in case of errors.

The use of successor jobs in case of errors can be configured with:

    <job stop_on_error="no">
    ...
      <commands on_exit_code="error">
        <start_job job="my_error_handler"><params/></start_job>
      </commands>
    </job>
               

This configuration lets the job start a successor in case of an error that is signalled by an exit code that is not 0. Additionally this example causes the job to continue in case of errors (<job stop_on_error=...>), i.e. the normal behaviour to stop a job in case of errors does not apply.

  • No labels