def configure_eventbus(self, enabled): if enabled: if not EventBus.instance: EventBus.create(f"{self.working_dir}/_events") EventBus.start() else: EventBus.shutdown()
def teardown(self): EventBus.shutdown() self.log_dir.cleanup()
def shutdown(self): EventBus.shutdown() self.state_watcher.shutdown()