Skip to content

Automate browser based workflows with AI

fix caching logs (add run_with to workflow run logs) (#3749)

Shuchang Zheng7edc63ea33eb
diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.py
index a452e9b72..4d5810025 100644
--- a/skyvern/forge/sdk/workflow/service.py
+++ b/skyvern/forge/sdk/workflow/service.py
@@ -469,7 +469,8 @@ class WorkflowService:
LOG.info(
"Workflow run is already timed_out, canceled, failed, or terminated, not marking as completed",
workflow_run_id=workflow_run_id,
- workflow_run_status=workflow_run.status if workflow_run else None,
+ workflow_run_status=workflow_run.status,
+ run_with=workflow_run.run_with,
)
await self.clean_up_workflow(
workflow=workflow,
@@ -2991,6 +2992,7 @@ class WorkflowService:
cache_key_value=rendered_cache_key_value,
script_id=existing_script.script_id,
script_revision_id=existing_script.script_revision_id,
+ run_with=workflow_run.run_with,
)
return