示例#1
0
文件: scheduler.py 项目: hbock/torbel
 def start(self):
     """ Start the scheduler. """
     # Start the export looping task, but don't run it immediately -
     # wait until the first export_interval (converted to seconds) to pass.
     reactor.callLater(self.export_interval * 60, self.export)
示例#2
0
文件: scheduler.py 项目: hbock/torbel
 def export(self):
     """ Force the controller to export all test data. """
     self.controller.export()
     reactor.callLater(self.export_interval * 60, self.export)
示例#3
0
文件: scheduler.py 项目: hbock/torbel
 def retry_later(self, router):
     """ Retry router in five minutes. """
     reactor.callLater(5 * 60, lambda: self.retry_soon(router))