- Timestamp:
- 04/20/05 10:35:19 (18 years ago)
- Location:
- trunk/daemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/job_dbase.sql
r92 r96 23 23 CREATE TABLE job_nodes ( 24 24 job_id INT NOT NULL REFERENCES jobs ON DELETE CASCADE, 25 node_id INT NOT NULL REFERENCES nodes ON DELETE CASCADE,25 node_id INT NOT NULL REFERENCES nodes ON DELETE RESTRICT, 26 26 PRIMARY KEY ( job_id, node_id ) 27 27 ); -
trunk/daemon/togad.py
r90 r96 189 189 for valname, value in jobattrs.items(): 190 190 191 if valname in job_values and value :191 if valname in job_values and value != '': 192 192 193 193 column_name = 'job_' + valname … … 409 409 410 410 jobinfo = { } 411 self.jobs_processed = [ ] 411 412 412 413 if name == 'METRIC': … … 421 422 job_id = metricname.split( 'TOGA-JOB-' )[1] 422 423 val = attrs.get( 'VAL', "" ) 424 425 if not job_id in self.jobs_processed: 426 self.jobs_processed.append( job_id ) 423 427 424 428 check_change = 0 … … 464 468 # it must have finished, since we _did_ get a new heartbeat 465 469 # 466 if jobinfo['reported'] < self.heartbeat and jobinfo['status'] == 'R' and jobid not in self.jobs_to_store: 470 mytime = int( jobinfo['reported'] ) + int( jobinfo['poll_interval'] ) 471 if mytime < self.heartbeat and jobid not in self.jobs_processed and jobinfo['status'] == 'R': 472 473 if not job_id in self.jobs_processed: 474 self.jobs_processed.append( jobid ) 467 475 468 476 self.jobAttrs[ jobid ]['status'] = 'F' 469 477 self.jobAttrs[ jobid ]['stop_timestamp'] = str( int( jobinfo['reported'] ) + int( jobinfo['poll_interval'] ) ) 478 470 479 if not jobid in self.jobs_to_store: 471 480 self.jobs_to_store.append( jobid ) … … 478 487 debug_msg( 1, printTime() + ' - torquexmlthread(): Done storing.' ) 479 488 489 self.jobs_processed = [ ] 480 490 self.jobs_to_store = [ ] 481 491
Note: See TracChangeset
for help on using the changeset viewer.