0

I'm developing a webserver using FastAPI, Beanie and Celery. The asynchronous nature of the ODM is userful when writing routers, however there are places where it is not required. For example, in a celery task I don't need to make asynchronous database calls.

Is there a way to make synchronous queries with Beanie?

I'm forced to wrap my celery task code in an async function and run it with asyncio.

0 Answers0