![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self) | |
The default constructor. | |
str | createDoneFileName (self, Script job) |
Generate the file name used for the done output. | |
prepareSubmission (self, Script job, options, tag) | |
Setup output folders and create the wrapping shell script. | |
checkDoneFile (self, job) | |
Checks whether the '.done'-file has been created for a job. | |
terminate (self, Script job) | |
Terminate running job. | |
adjust_path (self, path) | |
This method can be used if path names are different on submission and execution hosts. | |
Public Attributes | |
path = os.getcwd() | |
The default constructor. | |
logger = logging.getLogger("validate_basf2") | |
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 = self.adjust_path(os.environ["BELLE2_TOOLS"]) | |
Path to the basf2 tools and central/local release. | |
str | b2setup = "b2setup" |
The command for b2setup (and b2code-option) | |
clusterlog = open(clusterlog_dir + "clusterlog.log", "w+") | |
The file object to which all cluster messages will be written. | |
Base class which provides basic functionality to wrap basf2 into a shell script setting up the environment and checking for completion of script
Definition at line 21 of file clustercontrolbase.py.
__init__ | ( | self | ) |
The default constructor.
Definition at line 27 of file clustercontrolbase.py.
adjust_path | ( | self, | |
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 in Cluster.
Definition at line 177 of file clustercontrolbase.py.
checkDoneFile | ( | self, | |
job ) |
Checks whether the '.done'-file has been created for a job.
If so, it returns True, else it returns False in the first part of the tuple. Also deletes the .done-File it if exists. The second entry in the tuple will be the exit code read from the done file
Definition at line 139 of file clustercontrolbase.py.
str createDoneFileName | ( | self, | |
Script | job ) |
Generate the file name used for the done output.
Definition at line 76 of file clustercontrolbase.py.
prepareSubmission | ( | self, | |
Script | job, | ||
options, | |||
tag ) |
Setup output folders and create the wrapping shell script.
Will return the full file name of the generated wrapper script.
Definition at line 82 of file clustercontrolbase.py.
terminate | ( | self, | |
Script | job ) |
Terminate running job.
Definition at line 171 of file clustercontrolbase.py.
str b2setup = "b2setup" |
The command for b2setup (and b2code-option)
Definition at line 51 of file clustercontrolbase.py.
clusterlog = open(clusterlog_dir + "clusterlog.log", "w+") |
The file object to which all cluster messages will be written.
Definition at line 74 of file clustercontrolbase.py.
logger = logging.getLogger("validate_basf2") |
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 39 of file clustercontrolbase.py.
path = os.getcwd() |
The default constructor.
The path, where the help files are being created Maybe there should be a special subfolder for them?
Definition at line 33 of file clustercontrolbase.py.
tools = self.adjust_path(os.environ["BELLE2_TOOLS"]) |
Path to the basf2 tools and central/local release.
Definition at line 46 of file clustercontrolbase.py.