Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def export(self):
     """ Force the controller to export all test data. """
     self.controller.export()
     reactor.callLater(self.export_interval * 60, self.export)
Exemplo n.º 3
0
 def retry_later(self, router):
     """ Retry router in five minutes. """
     reactor.callLater(5 * 60, lambda: self.retry_soon(router))