Restrict the number of workers.
This commit is contained in:
parent
27422ae1e2
commit
71eb252b8d
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user