소스 검색

fix: iteration node in parallel mode token count error (#11539)

Co-authored-by: Novice Lee <novicelee@NoviPro.local>
tags/0.14.0
Novice 10 달 전
부모
커밋
1765fe2a29
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/core/workflow/nodes/iteration/iteration_node.py

+ 1
- 1
api/core/workflow/nodes/iteration/iteration_node.py 파일 보기

@@ -182,7 +182,6 @@ class IterationNode(BaseNode[IterationNodeData]):
future.add_done_callback(thread_pool.task_done_callback)
futures.append(future)
succeeded_count = 0
empty_count = 0
while True:
try:
event = q.get(timeout=1)
@@ -593,3 +592,4 @@ class IterationNode(BaseNode[IterationNodeData]):
parallel_mode_run_id=parallel_mode_run_id,
):
q.put(event)
graph_engine.graph_runtime_state.total_tokens += graph_engine_copy.graph_runtime_state.total_tokens

Loading…
취소
저장