Home | Trees | Indices | Help |
---|
|
object --+ | GPIProxyObject --+ | Lib.Job.JobTime'.JobTime._proxyClass
Job timestamp access. In development Changes in the status of a Job are timestamped - a datetime object is stored in the dictionary named 'timestamps', in Coordinated Universal Time(UTC). More information on datetime objects can be found at: http://docs.python.org/library/datetime.html Datetime objects can be subtracted to produce a 'timedelta' object. More information about these can be found at the above address. '+', '*', and '/' are not supported by datetime objects. Datetime objects can be formatted into strings using the .strftime(format_string) application, and the strftime codes. e.g. %Y -> year as integer %a -> abbreviated weekday name %M -> minutes as inetger The full list can be found at: http://docs.python.org/library/datetime.html#strftime-behavior Standard status types with built in access methods are: -'new' -'submitted' -'running' -'completed' -'killed' -'failed' These return a string with default format %Y/%m/%d @ %H:%M:%S. A custom format can be specified in the arguement. Any information stored within the timestamps dictionary can also be extracted in the way as in would be for a standard, non-application specific python dictionary. For a table display of the Job's timestamps use .time.display(). For timestamps details from the backend use .time.details() Properties: timestamps Dictionary containing timestamps for job. (simple property, default={},comparable)
|
|||
_impl This is a Ganga.GPI.JobTime implementation class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
timestamps = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor obje
|
|
|||
Inherited from |
|
GPI JobTime object constructor: JobTime() : create jobtime with default settings; JobTime(j) : make a copy of j; JobTime(j,x=a,...): make a copy of j and set property 'x' to a, etc..
|
Return an short representation of JobTime object.
|
Set a property of JobTime with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.
|
Return a printable string representing JobTime object as a tree of properties.
|
Obtains all timestamps available from the job's specific backend. Subjob arguement: None = default 'all' = gets details for ALL SUBJOBS. You have been warned. int = gets details for subjob number 'int' No argument is required for a job with no subjobs. |
Displays existing timestamps in a table. Format can be specified by typing a string of the appropriate strftime() behaviour codes as the arguement. e.g. '%H:%M:%S' ==> 13:55:01 For a full list of codes see http://docs.python.org/library/datetime.html?#strftime-behavior |
Method which returns the 'runtime' of the specified job. The runtime is calculated as the duration between the job entering the 'running' state and the job entering the 'completed' state. |
Method which returns submission time of specified job. Calculation: sub_time = submitted - submitting. |
Method which returns the waiting time of the specified job. The waiting time is calculated as the duration between the job entering the 'submitted' state and entering the 'running' state. |
|
timestamps
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:19 2012 | http://epydoc.sourceforge.net |