Skip to content

Automate browser based workflows with AI

do not keep regenerating scripts if already cached (#4080)

Shuchang Zhengc5b5486094db
diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.py
index 7a82e1e97..462ed3cc2 100644
--- a/skyvern/forge/sdk/workflow/service.py
+++ b/skyvern/forge/sdk/workflow/service.py
@@ -968,8 +968,8 @@ class WorkflowService:
if (
not block_executed_with_code
and block.label
+ and block.label not in script_blocks_by_label
and block_result.status == BlockStatus.completed
- and not getattr(block, "disable_cache", False)
and block.block_type in BLOCK_TYPES_THAT_SHOULD_BE_CACHED
):
blocks_to_update.add(block.label)