Skip to content

Commit

Permalink
llm 组件,memery默认output, template 优化, es删除
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 committed Jan 12, 2024
1 parent c783943 commit e0e7ab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/bisheng/utils/threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def run_in_event_loop(self, coro, *args, **kwargs):
future = asyncio.run_coroutine_threadsafe(coro(*args, **kwargs), loop)
# result = loop.run_until_complete(coro(*args, **kwargs))
end_wait = time.time()
# 压力大的时候,会创建更多线程,从而更多事件队列
time.sleep(1)
logger.info(f'async_task_waited={end_wait - start_wait:.2f} seconds', )
return future

Expand Down

0 comments on commit e0e7ab9

Please sign in to comment.