async def _post_backtesting_end_callback(self): # re enable logs logging.set_error_publication_enabled(True) # stop backtesting importers to release database files await self.octobot_backtesting.stop_importers()
def _post_backtesting_start(self): logging.reset_backtesting_errors() logging.set_error_publication_enabled(False) self.post_backtesting_task = asyncio.create_task(self._register_post_backtesting_end_callback())