Relative Content

Tag Archive for pythoncelerypython-asyncio

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: