Async: Add option to use Uvloop/Winloop

These are faster event loops for asyncio which should improve overall
performance. Gate these under an experimental flag for now to stress
test these loops.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-07-24 18:56:28 -04:00
parent 71de3060bb
commit 5c082b7e8c
6 changed files with 85 additions and 50 deletions

View file

@ -1,6 +1,5 @@
"""Utility to automatically upgrade and start the API"""
import asyncio
import argparse
import os
import pathlib
@ -159,4 +158,5 @@ if __name__ == "__main__":
# Import entrypoint after installing all requirements
from main import entrypoint
asyncio.run(entrypoint(convert_args_to_dict(args, parser)))
converted_args = convert_args_to_dict(args, parser)
entrypoint(converted_args)