Returned result
1 will be returned if the function added or removed a job dependency
–1 will be returned if the dependency already exists for and add or does not exist for a delete .
–2 will be returned if the dependency could not be maintained.
–3 will be returned if an unhandled error occurred.
Examples
The following examples all add a dependency to the job Daily Run Part2 so that it is dependent on the job called Daily Run. When Daily Run Part2 is dues to start, it looks back 60 minutes for a completed instance of Daily Run. If no instance is found, it polls regularly for a completed instance of Daily Run and after 60 minutes of unsuccessful waiting, it fails.