Icon

This is the documentation for an older version of Qube. The latest version of the documentation can be found here: Qube

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 5 Next »

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

 

Basic_Dependancy.py

 

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

You can create as many Child jobs as you wish
Try copying the child job and pasting it into the script again ... This will create 2 child jobs dependant on the completion of the parent  

 

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

  • No labels