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

@ -329,7 +329,7 @@ async def run_observer_cruise(
break
# generate the extraction task
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)
# refresh workflow
yaml_blocks.extend(block_yaml_list)
@ -534,7 +534,10 @@ async def _generate_loop_task(
)
# execute the extraction block
extraction_block_result = await extraction_block_for_loop.execute_safe(workflow_run_id=workflow_run_id)
extraction_block_result = await extraction_block_for_loop.execute_safe(
workflow_run_id=workflow_run_id,
organization_id=observer_cruise.organization_id,
)
LOG.info("Extraction block result", extraction_block_result=extraction_block_result)
if extraction_block_result.success is False:
LOG.error(