do not show child task run in the /runs history page (#1777)

This commit is contained in:
Shuchang Zheng
2025-02-17 16:52:22 +08:00
committed by GitHub
parent c846d3871b
commit a1e75f5465

View File

@@ -1408,6 +1408,7 @@ class AgentDB:
select(WorkflowRunModel, WorkflowModel.title)
.join(WorkflowModel, WorkflowModel.workflow_id == WorkflowRunModel.workflow_id)
.filter(WorkflowRunModel.organization_id == organization_id)
.filter(WorkflowRunModel.parent_workflow_run_id.is_(None))
)
if status:
workflow_run_query = workflow_run_query.filter(WorkflowRunModel.status.in_(status))