refactor: Add conditional check before setting cache in Graph class
This commit is contained in:
parent
632fe985ac
commit
137e82f5a4
1 changed files with 2 additions and 1 deletions
|
|
@ -292,7 +292,8 @@ class Graph:
|
|||
# Process the graph
|
||||
try:
|
||||
cache_service = get_chat_service()
|
||||
await cache_service.set_cache(self.flow_id, self)
|
||||
if self.flow_id:
|
||||
await cache_service.set_cache(self.flow_id, self)
|
||||
except Exception as exc:
|
||||
logger.exception(exc)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue