acoustic-parrot-22802
07/18/2025, 9:32 AMjolly-florist-66728
07/18/2025, 9:33 AMacoustic-parrot-22802
07/18/2025, 9:35 AMjolly-florist-66728
07/18/2025, 9:35 AMfrom flytekit.remote import FlyteRemote
from flytekit.configuration import Config
# Connect to Flyte backend
remote = FlyteRemote(
config=Config.for_endpoint(endpoint="flyte.example.net"),
default_project="your_project",
default_domain="your_domain",
)
# Fetch a workflow execution by name
execution = remote.fetch_execution(
name="your_execution_id", project="your_project", domain="your_domain"
)
# Sync to get node executions
synced_execution = remote.sync(execution, sync_nodes=True)
# Iterate over all node executions and print status and error if failed
for node_id, node_exec in synced_execution.node_executions.items():
print(f"Node: {node_id}, Status: {node_exec.closure.phase}")
if node_exec.closure.phase == "FAILED":
print(f" Error: {node_exec.closure.error.message}")
This will print the status of each node (task) and show error messages for any that failed.
Sources:
- Inspecting Executions
- test_remote.py π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.