Skip to content

Automate browser based workflows with AI

Sort artifacts by created_at (#356)

Kerem Yilmazdea883a463b6
diff --git a/skyvern/forge/sdk/db/client.py b/skyvern/forge/sdk/db/client.py
index 3a2e74ec9..b4880a759 100644
--- a/skyvern/forge/sdk/db/client.py
+++ b/skyvern/forge/sdk/db/client.py
@@ -561,6 +561,7 @@ class AgentDB:
.filter_by(task_id=task_id)
.filter_by(step_id=step_id)
.filter_by(organization_id=organization_id)
+ .order_by(ArtifactModel.created_at)
)
).all():
return [convert_to_artifact(artifact, self.debug_enabled) for artifact in artifacts]