- Timestamp:
- 04/18/05 10:44:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r78 r81 187 187 sys.stdin.close() 188 188 sys.stdout.close() 189 #sys.stderr.close()189 sys.stderr.close() 190 190 191 191 os.open('/dev/null', 0) … … 287 287 288 288 self.jobAttrs[ jobid ]['status'] = 'F' 289 self.jobAttrs[ jobid ]['stop_timestamp'] = jobinfo['reported']289 self.jobAttrs[ jobid ]['stop_timestamp'] = str( int( jobinfo['reported'] ) + int( jobinfo['poll_interval'] ) ) 290 290 291 291 def jobinfoChanged( self, jobattrs, jobid, jobinfo ): … … 1071 1071 """Program startup""" 1072 1072 1073 #myTProcessor = TorqueXMLProcessor() 1073 myTProcessor = TorqueXMLProcessor() 1074 myTProcessor.run() 1075 1076 sys.exit( 1 ) 1077 1074 1078 myGProcessor = GangliaXMLProcessor() 1075 1079 1076 1080 if DAEMONIZE: 1077 #torquexmlthread = threading.Thread( None, myTProcessor.daemon, 'tprocxmlthread' )1081 torquexmlthread = threading.Thread( None, myTProcessor.daemon, 'tprocxmlthread' ) 1078 1082 gangliaxmlthread = threading.Thread( None, myGProcessor.daemon, 'gprocxmlthread' ) 1079 1083 else: 1080 #torquexmlthread = threading.Thread( None, myTProcessor.run, 'tprocxmlthread' )1084 torquexmlthread = threading.Thread( None, myTProcessor.run, 'tprocxmlthread' ) 1081 1085 gangliaxmlthread = threading.Thread( None, myGProcessor.run, 'gprocxmlthread' ) 1082 1086 1083 #torquexmlthread.start() 1084 gangliaxmlthread.start() 1087 torquexmlthread.start() 1088 #gangliaxmlthread.start() 1089 1090 # Global functions 1085 1091 1086 1092 def check_dir( directory ):
Note: See TracChangeset
for help on using the changeset viewer.