fix: update task ID references in monitor routes for consistency with database schema
This commit is contained in:
parent
ab4cbf7188
commit
132ed292d6
|
|
@ -263,7 +263,7 @@ async def monitor_dashboard():
|
|||
<div>
|
||||
<strong>${task.workflow_name}</strong>
|
||||
<br>
|
||||
<small>ID: ${task.workflow_run_id}</small>
|
||||
<small>ID: ${task.id}</small>
|
||||
</div>
|
||||
<span class="task-status ${statusClass}">${task.status}</span>
|
||||
</div>
|
||||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue