create and update workflow run block inworkflow execution (#1419)

This commit is contained in:
Shuchang Zheng
2024-12-22 11:16:23 -08:00
committed by GitHub
parent 8b75586fb1
commit b256bace6a
8 changed files with 279 additions and 54 deletions

View File

@@ -248,7 +248,10 @@ class WorkflowService:
block_type_var=block.block_type,
block_label=block.label,
)
block_result = await block.execute_safe(workflow_run_id=workflow_run_id)
block_result = await block.execute_safe(
workflow_run_id=workflow_run_id,
organization_id=organization_id,
)
if block_result.status == BlockStatus.canceled:
LOG.info(
f"Block with type {block.block_type} at index {block_idx}/{blocks_cnt -1} was canceled for workflow run {workflow_run_id}, cancelling workflow run",