Merge pull request #8 from avatao-content/watchdog

Watchdog
This commit is contained in:
Bokros Bálint
2018-02-13 16:32:50 +01:00
committed by GitHub
6 changed files with 74 additions and 3 deletions

View File

@ -6,6 +6,9 @@ from tfw.config import tfwenv
if __name__ == '__main__':
anchor_webide = SourceCodeEventHandler('anchor_webide', tfwenv.WEBIDE_WD, 'login')
anchor_terminado = TerminadoEventHandler('anchor_terminado', 'terminado')
IOLoop.instance().start()
eventhandlers = {SourceCodeEventHandler('anchor_webide', tfwenv.WEBIDE_WD, 'login'),
TerminadoEventHandler('anchor_terminado', 'terminado')}
try:
IOLoop.instance().start()
finally:
for eh in eventhandlers: eh.cleanup()