<@U06RKAMK0UC> can I find the execution domain in...
# ask-ai
b
@ancient-wolf-19325 can I find the execution domain in a workflow
a
Reasoning Complete! 🤖 🔍 Searched knowledge base: I'll search for information on how to find the execution domain in a workflow, so I can give you a clear answer or steps to follow. • Searching over 10 data sources from the following: File, Github File, Github Issue, Web • Found 61 documents that could be relevant from the following data sources: Github File, Github Issue, Github Pull Request. • Filtered down to the top 30 most relevant documents. ✍️ Generated answer: I have all the information needed to explain how to find the execution domain in a Flyte workflow, including any special cases.
Yes, you can access the execution domain within a Flyte workflow or task using the Python SDK. In a Python task, use
flytekit.current_context().execution_id.domain
to retrieve the domain of the current execution. This is supported for Python tasks running on Kubernetes, but may not be available in all plugin types (e.g., Databricks tasks) or in all execution environments. There is no documented way to access the execution domain directly from a workflow definition itself—access is via the task context only. If you need to access the domain in other plugin types or environments, you may need to pass it explicitly as a workflow input, as this is a known limitation and an open feature request for some plugins. Would you like more detail or code examples for accessing the execution domain in tasks? Sources: - Flyte core issue: Make execution_id and execution_domain available for plugins 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.