diff --git a/app/routers/recipes.py b/app/routers/recipes.py index 7199c47..bd7d6f2 100644 --- a/app/routers/recipes.py +++ b/app/routers/recipes.py @@ -247,8 +247,8 @@ async def run_recipe( raise HTTPException(500, "Run creation returned no result") return { - "run_id": run.run_id, - "status": run.status, + "run_id": run["run_id"] if isinstance(run, dict) else run.run_id, + "status": run.get("status", "pending") if isinstance(run, dict) else run.status, "message": "Recipe execution started", } except HTTPException: