<@U06RKAMK0UC> Can I modify the data displayed on ...
# ask-ai
a
@ancient-wolf-19325 Can I modify the data displayed on an execution details graph tab? For instance, if I manually tie the
referenceExecution
or
parentNodeExecution
from another workflow, can the graph show that workflow as well?
a
Modifying the data displayed on an execution details graph tab to include references to another workflow is not straightforward. Flyte does not natively support visualizing linked workflows or subworkflows directly within the parent workflow's graph. However, there are some workarounds and ongoing discussions in the community about improving this functionality. According to a GitHub issue, there is a need for better visualization and linking of dynamic workflows and their children. While the Flyte UI does not currently support displaying nested workflows or linking them directly in the graph, you can manually fetch and visualize these relationships using FlyteRemote and custom scripts. For example, you can fetch execution details and construct a custom visualization using Python. Here's a basic example of how you might start:
Copy code
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config

# Initialize FlyteRemote
remote = FlyteRemote(config=Config.for_endpoint(endpoint="your_endpoint"), default_project="your_project", default_domain="your_domain")

# Fetch the parent execution
parent_execution = remote.fetch_execution(name="parent_execution_id")
remote.sync_execution(parent_execution, sync_nodes=True)

# Fetch and link child executions manually
for node in parent_execution.node_executions.values():
    if node.metadata.is_parent_node:
        child_execution = remote.fetch_execution(name=node.metadata.reference_execution)
        remote.sync_execution(child_execution, sync_nodes=True)
        # Add logic to visualize or link the child execution
Would you like more details or a more specific example? Sources: - GitHub issue - FlyteRemote usage 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.