Restrict the number of workers.

This commit is contained in:
Leo Vasanko 2023-11-21 12:13:57 +00:00
parent 27422ae1e2
commit 71eb252b8d

View File

@ -37,7 +37,7 @@ async def main_start(app, loop):
tracemalloc.start() tracemalloc.start()
config.load_config() config.load_config()
app.ctx.threadexec = ThreadPoolExecutor( app.ctx.threadexec = ThreadPoolExecutor(
max_workers=8, thread_name_prefix="cista-ioworker" max_workers=3, thread_name_prefix="cista-ioworker"
) )
await watching.start(app, loop) await watching.start(app, loop)