<@U06RKAMK0UC> can an eager workflow be a subworkf...
# ask-ai
b
@ancient-wolf-19325 can an eager workflow be a subworkflow
a
Reasoning Complete! šŸ¤– šŸ” Searched knowledge base: I'll look up whether there are any rules or limitations about using an eager workflow as a subworkflow to give you an accurate answer. • Searching over 10 data sources from the following: File, Github File, Github Issue, Web • Found 47 documents that could be relevant from the following data sources: Github File, Github Issue, Web Content. • Filtered down to the top 30 most relevant documents. āœļø Generated answer: I have found clear documentation and examples showing when and how eager workflows can be used as subworkflows, as well as the current limitations. I'm ready to provide a thorough answer.
No, an eager workflow cannot currently be used as a subworkflow within a static or dynamic Flyte workflow. Eager workflows, defined with the @eager decorator, are not supported as nodes inside @workflow or @dynamic workflows due to their reliance on Python async constructs and the fact that Flyte's workflow engine does not yet support async/await within standard workflow definitions. This limitation is acknowledged in both the documentation and open issues, and support for async workflows as subworkflows is planned for future Flyte releases but is not available today. Attempting to call an eager workflow from a static workflow will result in an error or is not supported by the current API and runtime model. For now, eager workflows are standalone and can only invoke other tasks, static workflows, or eager subworkflows within their own async context, but cannot themselves be embedded as subworkflows in a standard Flyte workflow graph. See the discussion and examples in the official documentation and GitHub issues for more details and current limitations (source1, source2). Would you like more detail or code examples illustrating this limitation? Sources: - GitHub Issue: Add support for async workflows - Eager workflows documentation šŸ‘ 0 button šŸ‘Ž 0 button šŸ’” Hint: Mention @runllm in the thread for followups.