Fix recipe steps display and DAG visualization

- Check multiple locations for nodes: dag.nodes, recipe.nodes, pipeline, steps
- Add dagre layout libraries for cytoscape DAG visualization
- Fix inputs parsing when stored as JSON string in Redis

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-11 20:21:24 +00:00
parent 209d416442
commit a6dd470623
4 changed files with 19 additions and 1 deletions

View File

@@ -114,6 +114,12 @@ class RunService:
task_actor_id = parsed.get("actor_id")
task_recipe = parsed.get("recipe")
task_inputs = parsed.get("inputs")
# Ensure inputs is a list (might be JSON string)
if isinstance(task_inputs, str):
try:
task_inputs = json.loads(task_inputs)
except json.JSONDecodeError:
task_inputs = None
task_output_name = parsed.get("output_name")
task_created_at = parsed.get("created_at")
except json.JSONDecodeError: