Package madgraph :: Package various :: Module cluster :: Class Cluster
[hide private]
[frames] | no frames]

Class Cluster

source code

object --+
         |
        Cluster
Known Subclasses:

Basic Class for all cluster type submission

Instance Methods [hide private]
 
__init__(self, *args, **opts)
Init the cluster
source code
 
submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, required_output=[], nb_submit=0)
How to make one submission.
source code
 
submit2(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, input_files=[], output_files=[], required_output=[], nb_submit=0)
How to make one submission.
source code
 
cluster_submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, input_files=[], output_files=[], required_output=[], nb_submit=0, packet_member=None)
This function wrap the cluster submition with cluster independant method should not be overwritten (but for DAG type submission)
source code
 
control(self, me_dir=None)
Check the status of job associated to directory me_dir.
source code
 
control_one_job(self, pid)
control the status of a single job with it's cluster id
source code
 
get_jobs_identifier(self, path, second_path=None)
get a unique run_name for all the jobs helps to identify the runs in the controller for some cluster.
source code
 
wait(self, *args, **opt)
Wait that all job are finish.
source code
 
check_termination(self, job_id)
Check the termination of the jobs with job_id and relaunch it if needed.
source code
 
launch_and_wait(self, *args, **opt)
launch one job on the cluster and wait for it
source code
 
remove(self, *args, **opts) source code
 
metasubmit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, input_files=[], output_files=[], required_output=[], nb_submit=0) source code
 
modify_interface(self, run_interface)
routine which allow to modify the run_card/mg5cmd object to change the default behavior of the runs.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  name = 'mother class'
  identifier_length = 14
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **opts)
(Constructor)

source code 

Init the cluster

Overrides: object.__init__

submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, required_output=[], nb_submit=0)

source code 

How to make one submission. Return status id on the cluster.

submit2(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, input_files=[], output_files=[], required_output=[], nb_submit=0)

source code 

How to make one submission. Return status id on the cluster. NO SHARE DISK

Decorators:
  • @store_input()

control(self, me_dir=None)

source code 

Check the status of job associated to directory me_dir. return (idle, run, finish, fail)

wait(self, *args, **opt)

source code 

Wait that all job are finish. if minimal_job set, then return if idle + run is lower than that number

Decorators:
  • @check_interupt()

launch_and_wait(self, *args, **opt)

source code 

launch one job on the cluster and wait for it

Decorators:
  • @check_interupt()

metasubmit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, input_files=[], output_files=[], required_output=[], nb_submit=0)

source code 
Decorators:
  • @store_input()

modify_interface(self, run_interface)

source code 

routine which allow to modify the run_card/mg5cmd object to change the default behavior of the runs. This is called at the time of the compilation of the run_card. Note that this function can be called multiple times by run.