Package Ganga :: Package Lib :: Package Batch :: Module Batch' :: Class Batch
[hide private]
[frames] | no frames]

Class Batch

source code

                 object --+            
                          |            
   GPIDev.Base.Objects.Node --+        
                              |        
GPIDev.Base.Objects.GangaObject --+    
                                  |    
  GPIDev.Adapters.IBackend.IBackend --+
                                      |
                                     Batch
Known Subclasses:

This is a Ganga.GPI.Batch implementation class. Refer to Ganga.GPI.Batch.__doc__ for documentation.

Nested Classes [hide private]
  _proxyClass
Batch submission backend.

Inherited from GPIDev.Base.Objects.GangaObject: __metaclass__

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
kill(self)
Kill a job (and also all its subjobs).
source code
 
preparejob(self, jobconfig, master_input_sandbox) source code
 
resubmit(self) source code
 
submit(self, jobconfig, master_input_sandbox)
Submit an individual job.
source code

Inherited from GPIDev.Adapters.IBackend.IBackend: check_auto_resubmit, getStateTime, master_auto_resubmit, master_kill, master_prepare, master_resubmit, master_submit, peek, remove, setup, timedetails

Inherited from GPIDev.Base.Objects.GangaObject: __construct__, __deepcopy__, __getstate__, __setstate__, _attribute_filter__set__, _auto__init__, accept, getJobObject

Inherited from GPIDev.Base.Objects.Node: __copy__, __eq__, __ne__, clone, copyFrom, printSummaryTree, printTree

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

Class Methods [hide private]
 
command(klass, cmd, soutfile=None, allowed_exit=[0]) source code
Static Methods [hide private]
 
updateMonitoringInformation(jobs)
Update monitoring information for individual jobs: jobs is a list which may contain subjobs as well as the non-split jobs.
source code

Inherited from GPIDev.Adapters.IBackend.IBackend: master_updateMonitoringInformation

Class Variables [hide private]
  _name = 'Batch'
  _schema = <Ganga.GPIDev.Schema.Schema.Schema instance at 0x393...
  actualCE = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x3...
  actualqueue = <Ganga.GPIDev.Base.Objects.Descriptor object at ...
  exitcode = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x3...
  extraopts = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x...
  id = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910750>
  queue = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910...
  status = <Ganga.GPIDev.Base.Objects.Descriptor object at 0x391...

Inherited from GPIDev.Base.Objects.Node (private): _index_cache, _parent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

kill(self)

source code 

Kill a job (and also all its subjobs). This method is never called by the framework directly. It may only be called by the default implementation of master_kill().

Overrides: GPIDev.Adapters.IBackend.IBackend.kill
(inherited documentation)

resubmit(self)

source code 
Overrides: GPIDev.Adapters.IBackend.IBackend.resubmit

submit(self, jobconfig, master_input_sandbox)

source code 

Submit an individual job. Return 1 in case of success.

master_input_sandbox is a list of file-names which is shared by all subjobs.

This method is not called directly by the framework. It is only called by the default implementation of master_submit() method.

Therefore if the implementation of master_submit() is able to cope with submission of individual jobs, then submit() is redundant.

Transition from Ganga 4.0.x:

  • subjobconfig is equvalent to jobconfig in the older interface.
  • jobid is an obsolte parameter which will be removed in the future
Overrides: GPIDev.Adapters.IBackend.IBackend.submit
(inherited documentation)

updateMonitoringInformation(jobs)
Static Method

source code 

Update monitoring information for individual jobs: jobs is a list which may contain subjobs as well as the non-split jobs. This method is never called by the framework directly. It may only be called by the default implementation of master_updateMonitoringInformation().

Overrides: GPIDev.Adapters.IBackend.IBackend.updateMonitoringInformation
(inherited documentation)

Class Variable Details [hide private]

_schema

Value:
<Ganga.GPIDev.Schema.Schema.Schema instance at 0x393f7a0>

actualCE

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910450>

actualqueue

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x39103d0>

exitcode

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910950>

extraopts

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x39104d0>

queue

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910550>

status

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x3910350>