Hey! Is there a way to run async code (async def function) inside a prefect task? Should I create a loop and then pass this coro in loop.run_until_complete () inside @task?
k
Kevin Kho
11/30/2021, 6:45 PM
Hey @bral, it is not first class in current Prefect but it’s first class in Orion (Prefect 2.0). Have you seen the Orion docs ?
upvote 1
Kevin Kho
11/30/2021, 6:46 PM
You can look at this though and see if it helps you
👍 1
b
bral
11/30/2021, 6:48 PM
@Kevin Kho Thanks for the quick response. I saw this feature in prefect 2.0. But there is probably some way to get it running in the current latest version.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.