浏览代码

Fix: restore task limiter. (#7844)

### What problem does this PR solve?

Close #7828

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.1
Kevin Hu 5 个月前
父节点
当前提交
be83074131
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      rag/svr/task_executor.py

+ 1
- 0
rag/svr/task_executor.py 查看文件

@@ -550,6 +550,7 @@ async def do_handle_task(task):
with_community = graphrag_conf.get("community", False)
await run_graphrag(task, task_language, with_resolution, with_community, chat_model, embedding_model, progress_callback)
progress_callback(prog=1.0, msg="Knowledge Graph done ({:.2f}s)".format(timer() - start_ts))
task_limiter = trio.CapacityLimiter(MAX_CONCURRENT_TASKS)
return
else:
# Standard chunking methods

正在加载...
取消
保存