Belle II Software development
|
Public Member Functions | |
def | __init__ (self) |
The default constructor. | |
def | adjust_path (self, str path) |
This method can be used if path names are different on submission and execution hosts. | |
def | available (self) |
The cluster should always be available to accept new jobs. | |
def | execute (self, Script job, options="", dry=False, tag="current") |
Takes a Script object and a string with options and runs it on the cluster, either with ROOT or with basf2, depending on the file type. | |
def | is_job_finished (self, Script job) |
Checks whether the '.done'-file has been created for a job. | |
def | terminate (self, Script job) |
Terminate a running job, not support with this backend so ignore the call. | |
Static Public Member Functions | |
def | is_supported () |
def | name () |
def | description () |
Public Attributes | |
submit_command | |
The command to submit a job. | |
requirement_vmem | |
required vmem by the job in GB, required on DESY NAF, otherwise jobs get killed due to memory consumption | |
requirement_storage | |
the storage IO in GB which can be performed by each job. | |
queuename | |
Queue best suitable for execution at DESY NAF. | |
path | |
The path, where the help files are being created Maybe there should be a special subfolder for them? | |
logger | |
Contains a reference to the logger-object from validate_basf2 Set up the logging functionality for the 'cluster execution'-Class, so we can log to validate_basf2.py's log what is going on in .execute and .is_finished. | |
tools | |
We need to set up the same environment on the cluster like on the local machine. | |
b2setup | |
The command for b2setup (and setoption) | |
clusterlog | |
The file object to which all cluster messages will be written. | |
A class that provides the controls for running jobs on a (remote) Sun Grid Engine cluster. It provides two methods: - is_job_finished(job): Returns True or False, depending on whether the job has finished execution - execute(job): Takes a job and executes it by sending it to the cluster
Definition at line 23 of file clustercontrolsge.py.
def __init__ | ( | self | ) |
The default constructor.
Definition at line 53 of file clustercontrolsge.py.
def adjust_path | ( | self, | |
str | path | ||
) |
This method can be used if path names are different on submission and execution hosts.
path | The past that needs to be adjusted |
Definition at line 128 of file clustercontrolsge.py.
def available | ( | self | ) |
The cluster should always be available to accept new jobs.
Definition at line 139 of file clustercontrolsge.py.
|
static |
Returns description of this job control
Definition at line 47 of file clustercontrolsge.py.
def execute | ( | self, | |
Script | job, | ||
options = "" , |
|||
dry = False , |
|||
tag = "current" |
|||
) |
Takes a Script object and a string with options and runs it on the cluster, either with ROOT or with basf2, depending on the file type.
job | The steering file object that should be executed |
options | Options that will be given to the basf2 command |
dry | Whether to perform a dry run or not |
tag | The folder within the results directory |
Definition at line 147 of file clustercontrolsge.py.
def is_job_finished | ( | self, | |
Script | job | ||
) |
Checks whether the '.done'-file has been created for a job.
If so, it returns True, else it returns False. Also deletes the .done-File once it has returned True.
job | The job of which we want to know if it finished |
Definition at line 238 of file clustercontrolsge.py.
|
static |
Check if qsub is available
Definition at line 33 of file clustercontrolsge.py.
|
static |
Returns name of this job control
Definition at line 40 of file clustercontrolsge.py.
def terminate | ( | self, | |
Script | job | ||
) |
Terminate a running job, not support with this backend so ignore the call.
Definition at line 273 of file clustercontrolsge.py.
b2setup |
The command for b2setup (and setoption)
Definition at line 102 of file clustercontrolsge.py.
clusterlog |
The file object to which all cluster messages will be written.
Definition at line 125 of file clustercontrolsge.py.
logger |
Contains a reference to the logger-object from validate_basf2 Set up the logging functionality for the 'cluster execution'-Class, so we can log to validate_basf2.py's log what is going on in .execute and .is_finished.
Definition at line 90 of file clustercontrolsge.py.
path |
The path, where the help files are being created Maybe there should be a special subfolder for them?
Definition at line 84 of file clustercontrolsge.py.
queuename |
Queue best suitable for execution at DESY NAF.
Definition at line 80 of file clustercontrolsge.py.
requirement_storage |
the storage IO in GB which can be performed by each job.
By default, this is 3GB at DESY which is to small for some validation scripts
Definition at line 77 of file clustercontrolsge.py.
requirement_vmem |
required vmem by the job in GB, required on DESY NAF, otherwise jobs get killed due to memory consumption
Definition at line 72 of file clustercontrolsge.py.
submit_command |
The command to submit a job.
'LOGFILE' will be replaced by the actual log file name
Definition at line 64 of file clustercontrolsge.py.
tools |
We need to set up the same environment on the cluster like on the local machine.
The information can be extracted from $BELLE2_TOOLS, $BELLE2_RELEASE_DIR and $BELLE2_LOCAL_DIR
Path to the basf2 tools and central/local release
Definition at line 97 of file clustercontrolsge.py.