fix: ensure cache is set for graph in build flow (#3531)
added a condition to set the cache for the graph when it is built. this ensures that the latest graph state is stored in the chat service.
This commit is contained in:
parent
189ef4147d
commit
d9a9401e3b
1 changed files with 2 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ async def build_flow(
|
|||
data=result_data_response,
|
||||
artifacts=artifacts,
|
||||
)
|
||||
else:
|
||||
await chat_service.set_cache(flow_id_str, graph)
|
||||
|
||||
timedelta = time.perf_counter() - start_time
|
||||
duration = format_elapsed_time(timedelta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue