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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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",