Fix timeline building infinite loop (#2024)

This commit is contained in:
Shuchang Zheng 2025-03-26 13:35:40 -07:00 committed by GitHub
parent b9825e3c82
commit 468d61d7ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1960,6 +1960,7 @@ class WorkflowService:
if block.parent_workflow_run_block_id:
if block.parent_workflow_run_block_id in block_map:
block_map[block.parent_workflow_run_block_id].children.append(workflow_run_timeline)
block_map[block.workflow_run_block_id] = workflow_run_timeline
else:
# put the block back to the queue
workflow_run_blocks.append(block)