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, cluster_queue=None)
Init the cluster
source code
 
submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None)
How to make one submission.
source code
 
control(self, me_dir=None)
Check the status of job associated to directory me_dir.
source code
 
control_one_job(self, id)
control the status of a single job with it's cluster id
source code
 
wait(self, *args, **opt)
Wait that all job are finish
source code
 
launch_and_wait(self, *args, **opt)
launch one job on the cluster and wait for it
source code
 
remove(self, *args) 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'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cluster_queue=None)
(Constructor)

source code 

Init the cluster

Overrides: object.__init__

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

source code 

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

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

Decorators:
  • @check_interupt()

launch_and_wait(self, *args, **opt)

source code 

launch one job on the cluster and wait for it

Decorators:
  • @check_interupt()