Fix session retrieval in build_vertex function
This commit is contained in:
parent
60c7ea3e35
commit
a4c74f099c
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ async def build_vertex(
|
|||
f"No cache found for {flow_id}. Building graph starting at {vertex_id}"
|
||||
)
|
||||
graph = build_and_cache_graph(
|
||||
flow_id=flow_id, session=get_session(), chat_service=chat_service
|
||||
flow_id=flow_id, session=next(get_session()), chat_service=chat_service
|
||||
)
|
||||
else:
|
||||
graph = cache.get("result")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue