Why can’t I call Run from asyncio twice in the same function?
I am using Celery to process background tasks in my application. Sometimes, I need to process asynchronous functions within those tasks, for which I use asyncio. And in this case, I also need to process an asynchronous function in a finally block. So my code is something like this:
Is there an easier way to run async functions in Celery tasks in one event loop?
I have some async code and I need to run it inside the Celery task.