<@U06RKAMK0UC> can I call a promise object in a wo...
# ask-ai
b
@ancient-wolf-19325 can I call a promise object in a workflow
a
Reasoning Complete! šŸ¤– šŸ” Searched knowledge base: I want to check the documentation to see if workflows support calling or handling promise objects, so I can give you an accurate answer. • Searching over 10 data sources from the following: File, Github File, Github Issue, Web • Found 64 documents that could be relevant from the following data sources: Github File, Github Issue, Github Pull Request, Web Content. • Filtered down to the top 30 most relevant documents. āœļø Generated answer: I have confirmed that in Flyte, you cannot directly call or access a Promise object within a workflow. Promise objects are placeholders for values that will be available at runtime, and you can only pass them as inputs to other tasks or workflows.
No, you cannot directly "call" a Promise object in a Flyte workflow. In Flyte, a Promise is a placeholder for a value that will be produced by a task or workflow at execution time. You can only pass Promise objects as inputs to other tasks, workflows, or Flyte constructs, but you cannot invoke or access their underlying value directly within the workflow body. Attempting to do so will not yield the actual value and may result in errors or unexpected behavior. This is a core part of Flyte's workflow DSL semantics, as described in the documentation and multiple issues (see here, here, and here). If you need to operate on the actual value, you must do so inside a task, not in the workflow body. Alternatively, you can use an eager workflow (
@eager
), which allows you to materialize outputs as Python values, but this is a different execution paradigm (see eager workflows). Would you like more detail or code examples? Sources: - Flyte Fundamentals: Tasks, Workflows, and Launch Plans - Flyte User Guide: Workflows - Flyte Blog: Meet the Databricks Integration - Eager Workflows šŸ‘ 0 button šŸ‘Ž 0 button šŸ’” Hint: Mention @runllm in the thread for followups.