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:
parent
71de3060bb
commit
5c082b7e8c
6 changed files with 85 additions and 50 deletions
4
start.py
4
start.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue