- Timestamp:
- 04/18/05 10:54:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r81 r82 270 270 if check_change: 271 271 if self.jobinfoChanged( self.jobAttrs, job_id, jobinfo ): 272 self.jobAttrs[ job_id ] = jobinfo272 self.jobAttrs[ job_id ] = self.setJobAttrs( self.jobAttrs[ job_id ], jobinfo ) 273 273 debug_msg( 0, 'jobinfo for job %s has changed' %job_id ) 274 274 else: … … 289 289 self.jobAttrs[ jobid ]['stop_timestamp'] = str( int( jobinfo['reported'] ) + int( jobinfo['poll_interval'] ) ) 290 290 291 def setJobAttrs( self, old, new ): 292 """ 293 Set new job attributes in old, but not lose existing fields 294 if old attributes doesn't have those 295 """ 296 297 for valname, value in new.items(): 298 old[ valname ] = value 299 300 return old 301 302 291 303 def jobinfoChanged( self, jobattrs, jobid, jobinfo ): 292 304 """
Note: See TracChangeset
for help on using the changeset viewer.