Ross Rochford

    Ross Rochford

    6 months ago
    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?
    Kevin Kho

    Kevin Kho

    6 months ago
    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?
    Ross Rochford

    Ross Rochford

    6 months ago
    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.
    Michael Adkins

    Michael Adkins

    6 months ago
    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.