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