fix: improve maintenance and synchronize live conversations
This commit is contained in:
1 parent
bb541bd212
commit
ef86a5d3af
297 files changed
+2983
-1274
No files matched your search
@@ -380,7 +380,6 @@ class SessionToAgentRepository:
|
||||
|
||||
logger.info(f"Updating workflow state for session {session_id}")
|
||||
logger.info(f"Setting current_node_id to: {current_node_id}")
|
||||
logger.info(f"Setting workflow_state to: {workflow_state}")
|
||||
|
||||
# Update fields
|
||||
session.current_node_id = current_node_id
|
||||
@@ -396,11 +395,10 @@ class SessionToAgentRepository:
|
||||
|
||||
# Verify the update
|
||||
logger.info(f"Verified - current_node_id: {session.current_node_id}")
|
||||
logger.info(f"Verified - workflow_state: {session.workflow_state}")
|
||||
|
||||
return True
|
||||
except Exception as e:
|
||||
logger.error(f"Error updating workflow state: {str(e)}")
|
||||
logger.error(f"Error updating workflow state for session {session_id}: {type(e).__name__}")
|
||||
self.db.rollback()
|
||||
return False
|
||||
|
||||
@@ -477,7 +475,7 @@ class SessionToAgentRepository:
|
||||
logger.info(f"Added workflow history entry for session {session_id}: {entry_type}")
|
||||
return True
|
||||
except Exception as e:
|
||||
logger.error(f"Error adding workflow history entry: {str(e)}")
|
||||
logger.error(f"Error adding workflow history for session {session_id} at node {node_id}: {type(e).__name__}")
|
||||
self.db.rollback()
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user