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

Class _proxyClass

source code

    object --+    
             |    
GPIProxyObject --+
                 |
                Lib.Batch.Batch'.Batch._proxyClass

Batch submission backend.

    It  is  assumed  that   Batch  commands  (bjobs,  bsub  etc.)  setup
    correctly. As  little assumptions as  possible are made  about the
    Batch configuration but  at certain sites it may  not work correctly
    due  to a  different  Batch setup.  Tested  with CERN  and CNAF  Batch
    installations.
    
    Each batch system supports an 'extraopts' field, which allows customisation
    of way the job is submitted.

    PBS:
    Take environment settings on submitting machine and export to batch job:
    backend.extraopts = "-V"

    Request minimum walltime of 24 hours and minimum memory of 2GByte:
    backend.extraopts = "-l walltime=24:00:00 mem=2gb"

    The above can be combined as:
    backend.extraopts = "-V -l walltime=24:00:00 mem=2gb" 

    LSF:
    Sends mail to you when the job is dispatched and begins execution.
    backend.extraopts = "-B"

    Assigns the Ganga job name to the batch job. The job name does not need to 
    be unique.
    backend.extraopts = "-J "+ j.name

    Run the job on a host that meets the specified resource requirements.
    A resource requirement string describes the resources a job needs.
    E.g request 2Gb of memory ans 1Gb of swap space
    backend.extraopts = '-R "mem=2048" -R "swp=1024"'

    Kill job if it has exceeded the deadline (i.e. for your presentation)
    backend.extraopts = '-t 07:14:12:59' #Killed if not finished by 14 July before 1 pm
    

Properties:

     actualqueue queue name where the job was submitted.. (simple property,
                 default='',protected,comparable)

     actualCE    hostname where the job is/was running.. (simple property,
                 default='',protected,comparable)

     extraopts   extra options for Batch. See help(Batch) for more details.
                 (simple property, default='',comparable)

     queue       queue name as defomed in your local Batch installation. (simple
                 property, default='',comparable)

     id          Batch id of the job. (simple property,
                 default='',protected,comparable)

     exitcode    Process exit code. (simple property,
                 default=None,protected,comparable)

Nested Classes [hide private]
  _impl
This is a Ganga.GPI.Batch implementation class.
Instance Methods [hide private]
 
__eq__(self, x)
Equality operator (==), compare the Batch properties which are declared as [comparable].
source code
 
__init__(self, *args, **kwds)
GPI Batch object constructor: Batch() : create batch with default settings; Batch(b) : make a copy of b; Batch(b,x=a,...): make a copy of b and set property 'x' to a, etc..
source code
 
__ne__(self, x)
Non-equality operator (!=).
source code
 
__repr__(self)
Return an short representation of Batch object.
source code
 
__setattr__(self, x, v)
Set a property of Batch with consistency and safety checks.
source code
 
__str__(self)
Return a printable string representing Batch object as a tree of properties.
source code
 
copy(self)
Make an identical copy of self.
source code

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

Class Variables [hide private]
  actualCE = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object...
  actualqueue = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor obj...
  exitcode = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object...
  extraopts = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor objec...
  id = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x...
  queue = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

GPI Batch object constructor: Batch() : create batch with default settings; Batch(b) : make a copy of b; Batch(b,x=a,...): make a copy of b and set property 'x' to a, etc..

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return an short representation of Batch object.

Overrides: object.__repr__

__setattr__(self, x, v)

source code 

Set a property of Batch with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.

Overrides: object.__setattr__

__str__(self)
(Informal representation operator)

source code 

Return a printable string representing Batch object as a tree of properties.

Overrides: object.__str__

Class Variable Details [hide private]

actualCE

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x3910490>

actualqueue

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x3910410>

exitcode

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x3910a10>

extraopts

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x3910510>

id

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x3910890>

queue

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x39106d0>