From 7edc63ea33ebbf969f45a93e9ce418e96528925a Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Thu, 16 Oct 2025 15:22:17 -0700 Subject: [PATCH] fix caching logs (add run_with to workflow run logs) (#3749) --- skyvern/forge/sdk/workflow/service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.py index a452e9b7..4d581002 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