Skip to content

Automate browser based workflows with AI

add organization_id to the Failed to create workflow error log part 2 (#909)

Shuchang Zheng07fb1a16adf5
diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.py
index a7cd5c9dc..8fcf578d4 100644
--- a/skyvern/forge/sdk/workflow/service.py
+++ b/skyvern/forge/sdk/workflow/service.py
@@ -1047,7 +1047,10 @@ class WorkflowService:
return workflow
except Exception as e:
if new_workflow_id:
- LOG.error(f"Failed to create workflow from request, deleting workflow {new_workflow_id}")
+ LOG.error(
+ f"Failed to create workflow from request, deleting workflow {new_workflow_id}",
+ organization_id=organization_id,
+ )
await self.delete_workflow_by_id(workflow_id=new_workflow_id, organization_id=organization_id)
else:
LOG.exception(f"Failed to create workflow from request, title: {request.title}")