https://prefect.io logo
Title
r

Ross Rochford

03/17/2022, 5:41 PM
Hi everyone, I'd like to try Orion, I noticed that there is some asyncio support using AnyIO. However, I don't see anything listed in the task runners documentation. Is this feature disabled for now?
k

Kevin Kho

03/17/2022, 5:45 PM
Hey @Ross Rochford, it is not disabled and it works if you define an async task and the default task runner will handle it. Did something not work for you?
r

Ross Rochford

03/17/2022, 5:46 PM
ok, thank you. I was expecting to see a separate task runner listed in the documentation. I'm new to Prefect and haven't tried it Orion yet.
I'm very curious to see whether it plays nice with Trio, given that it uses AnyIO.
z

Zanie

03/17/2022, 6:10 PM
Yep the
ConcurrentTaskRunner
(default) runs sync tasks in threads and async tasks on the event loop.
We don’t play nicely with trio yet from some rough tests I did a while ago, but it seems achievable in the future. Using anyio to write structured concurrency within your flows is already a big benefit even if it’s backed by asyncio instead of trio.
👍 1
:upvote: 1