Returned result
1 will be returned if the function restarted the job.
–1 will be returned if the job was not in a failed state.
–2 will be returned if the job could not be restarted.
–3 will be returned if an unhandled error occurred.
Examples
The following examples all restart a job called Daily Run: