Changeset 77


Ignore:
Timestamp:
04/15/05 12:28:58 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

  • Misc bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r74 r77  
    187187                                        check_change = 1
    188188
    189                                 if not jobinfo.has_key( job_id ):
    190                                         jobinfo[ job_id ] = { }
    191 
    192189                                valinfo = val.split( ' ' )
    193190
     
    200197                                                value = value.split( ';' )
    201198
    202                                         jobinfo[ job_id ][ valname ] = value
     199                                        jobinfo[ valname ] = value
    203200
    204201                                if check_change:
     
    210207                                        debug_msg( 0, 'jobinfo for job %s has changed' %job_id )
    211208                                       
    212         def endElement( self, name, attrs ):
     209        def endDocument( self ):
    213210                """When all metrics have gone, check if any jobs have finished"""
    214211
     
    221218
    222219                                self.jobAttrs[ jobid ]['status'] = 'F'
    223                                 self.jobAttrs[ jobid ]['stop_timestamp'] = self.heartbeat
     220                                self.jobAttrs[ jobid ]['stop_timestamp'] = jobinfo['reported']
    224221
    225222        def jobinfoChanged( self, jobattrs, jobid, jobinfo ):
Note: See TracChangeset for help on using the changeset viewer.