alert-oil-1341
07/08/2024, 11:51 PMreferenceExecution
or parentNodeExecution
from another workflow, can the graph show that workflow as well?ancient-wolf-19325
07/08/2024, 11:51 PMfrom 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.