Skip to content

Automate browser based workflows with AI

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

Shuchang Zhenga1e75f54652c
diff --git a/skyvern/forge/sdk/db/client.py b/skyvern/forge/sdk/db/client.py
index 83fe20c77..ec9b4037c 100644
--- a/skyvern/forge/sdk/db/client.py
+++ b/skyvern/forge/sdk/db/client.py
@@ -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))