SamWarden/user_service

Running via cli and using gunicorn

dotX12 opened this issue · 1 comments

dotX12 commented

Hello! Thanks for your project!

Is it possible to use proprietary launch via cli aka uvicorn "main:app" --port 66666
I don't feel like using await uvicorn.Server(...).serve()
Also, could you add an example with running through gunicorn?

I would also like to know how it is possible to run this code from cli. I came across the fact that if you configure the application for uvicorn via get_event_loop, then a nested event loop will be used, and even if you use nest_asyncio, then aio-pika will not allow this to work normally.