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. | |
Static Public Member Functions | |
def | is_supported () |
def | name () |
def | description () |
Public Attributes | |
native_spec | |
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. | |
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 19 of file clustercontroldrmaa.py.
def __init__ | ( | self | ) |
The default constructor.
Reimplemented from ClusterBase.
Definition at line 62 of file clustercontroldrmaa.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 |
Reimplemented from ClusterBase.
Definition at line 96 of file clustercontroldrmaa.py.
def available | ( | self | ) |
The cluster should always be available to accept new jobs.
Definition at line 107 of file clustercontroldrmaa.py.
|
static |
Returns description of this job control
Definition at line 56 of file clustercontroldrmaa.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 115 of file clustercontroldrmaa.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 164 of file clustercontroldrmaa.py.
|
static |
Check if qsub is available
Definition at line 29 of file clustercontroldrmaa.py.
|
static |
Returns name of this job control
Definition at line 49 of file clustercontroldrmaa.py.
native_spec |
The command to submit a job.
'LOGFILE' will be replaced by the actual log file name
Definition at line 73 of file clustercontroldrmaa.py.
queuename |
Queue best suitable for execution at DESY NAF.
Definition at line 89 of file clustercontroldrmaa.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 86 of file clustercontroldrmaa.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 81 of file clustercontroldrmaa.py.