Don't restart on config changes.

This commit is contained in:
Leo Vasanko 2023-11-21 12:35:56 +00:00
parent 3c79f06d2c
commit 888bc97264

View File

@ -36,6 +36,7 @@ app.exception(Exception)(handle_sanic_exception)
async def main_start(app, loop): async def main_start(app, loop):
tracemalloc.start() tracemalloc.start()
config.load_config() config.load_config()
print(config.config, config.config.public)
app.ctx.threadexec = ThreadPoolExecutor( app.ctx.threadexec = ThreadPoolExecutor(
max_workers=3, thread_name_prefix="cista-ioworker" max_workers=3, thread_name_prefix="cista-ioworker"
) )