Fix run detail page and recipe name

- Render HTML template for run detail (not just JSON)
- Get recipe name from pending_runs instead of hardcoding "dag"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-11 21:56:08 +00:00
parent aacf1ceb77
commit 95ffe9fa69
2 changed files with 16 additions and 4 deletions

View File

@@ -383,16 +383,18 @@ def execute_dag(self, dag_json: str, run_id: str = None) -> dict:
if (node.node_type == NodeType.SOURCE or str(node.node_type) == "SOURCE")
and node.config.get("content_hash")
]
# Get actor_id from pending_runs (saved when run started)
# Get actor_id and recipe from pending_runs (saved when run started)
actor_id = None
recipe_name = "dag"
pending = await database.get_pending_run(run_id)
if pending:
actor_id = pending.get("actor_id")
recipe_name = pending.get("recipe") or "dag"
await database.save_run_cache(
run_id=run_id,
output_hash=output_hash,
recipe="dag",
recipe=recipe_name,
inputs=input_hashes_for_db,
ipfs_cid=output_ipfs_cid,
actor_id=actor_id,