Hi everyone, I'd like to try Orion, I noticed that...
# prefect-server
r
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
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
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
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