add workflow_run_id and workflow_run_block_id in create/update script_blocks code (#3904)

This commit is contained in:
Shuchang Zheng
2025-11-05 08:46:03 +08:00
committed by GitHub
parent 8288c973bd
commit 16f61af6cf
6 changed files with 35 additions and 0 deletions

View File

@@ -1034,6 +1034,8 @@ async def _regenerate_script_block_after_ai_fallback(
script_id=new_script.script_id,
organization_id=organization_id,
block_label=existing_block.script_block_label,
workflow_run_id=existing_block.workflow_run_id,
workflow_run_block_id=existing_block.workflow_run_block_id,
)
block_file_content_bytes = (
block_file_content if isinstance(block_file_content, bytes) else block_file_content.encode("utf-8")