The next step is to understand basic dependancies
The method used below is not the best method for dependancies but is a short introduction to the theory behind dependancies
Feel free to download an run the below script as it setup a job that will :
- Create a Parent "Sleep job" with a range of 60
- Create a Blocked Child "Sleep job" that waits for the Parent to complete before starting
Below is the code with commented explanations of its contents
This job uses
job['waitfor'] = parentJobID
To assign the dependancy to the child job so that it waits for the Parent job to complete
Note: The child job will run no matter the outcome of the Parent job whether it fails or completes
A non edited version of this script can be found along with others :
- Windows - C:\Program Files\pfx\qube\examples\jobSubmit03.py
- OSX - /Application/pfx/qube/examples/jobSubmit03.py
- Linux - /usr/local/pfx/qube/examples/jobSubmit03.py
Online - Python
Continue to Advanced Dependancies