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

This commit is contained in:
Shuchang Zheng
2025-11-24 01:55:21 -08:00
committed by GitHub
parent 51b968d0a2
commit c5b5486094

View File

@@ -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)