prober: turn on parallelism for probert storage

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2023-04-21 11:01:32 +02:00
parent 782481b357
commit a270019387
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ class Prober():
# Until probert is completely free of blocking IO, we should continue # Until probert is completely free of blocking IO, we should continue
# running it in a separate thread. # running it in a separate thread.
def run_probert(probe_types): def run_probert(probe_types):
return asyncio.run(Storage().probe(probe_types=probe_types)) return asyncio.run(Storage().probe(probe_types=probe_types,
parallelize=True))
return await run_in_thread(run_probert, probe_types) return await run_in_thread(run_probert, probe_types)