From 132ed292d61fe32604dc548c097edfac85ac395e Mon Sep 17 00:00:00 2001 From: iHeyTang Date: Mon, 18 Aug 2025 11:04:26 +0800 Subject: [PATCH] fix: update task ID references in monitor routes for consistency with database schema --- workflow_service/routes/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow_service/routes/monitor.py b/workflow_service/routes/monitor.py index da47209..48143c4 100644 --- a/workflow_service/routes/monitor.py +++ b/workflow_service/routes/monitor.py @@ -263,7 +263,7 @@ async def monitor_dashboard():
${task.workflow_name}
- ID: ${task.workflow_run_id} + ID: ${task.id}
${task.status} @@ -418,7 +418,7 @@ async def get_recent_tasks(limit: int = 10) -> List[Dict[str, Any]]: formatted_runs = [] for run in limited_runs: formatted_runs.append({ - "workflow_run_id": run.get('workflow_run_id'), + "id": run.get('id'), # 使用数据库中的id字段 "workflow_name": run.get('workflow_name'), "status": run.get('status', 'unknown'), "created_at": run.get('created_at'),