Changeset 841 for trunk/Monitoring/RunChecker/runchecker
- Timestamp:
- 03/28/13 11:44:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Monitoring/RunChecker/runchecker
r840 r841 19 19 @classmethod 20 20 def check(cls): 21 simulation=dao.getSimulation() 21 simulation=dao.get_simulation() 22 23 m=simulation.get_last_message() 24 25 if (current_date-m.timestamp).days > 2: 26 27 print "simulation too old" 28 29 messages=simulation.get_messages() 30 31 for m in messages: 32 33 pass 34 35 22 36 23 37 def main(): … … 32 46 sys.exit(1) 33 47 34 # open DB connections 35 36 # initialize logger 48 SMON.init_singleton() 37 49 38 #50 RunChecker.check() 39 51 40 41 # close DB connections 42 52 SMON.free_singleton() 43 53 44 54 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.