Pārlūkot izejas kodu

fix: db_model save to _node_execution_cache (#19911)

tags/1.4.1
非法操作 pirms 5 mēnešiem
vecāks
revīzija
bbebf9ad3e
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
api/core/repositories/sqlalchemy_workflow_node_execution_repository.py Parādīt failu

@@ -202,7 +202,7 @@ class SQLAlchemyWorkflowNodeExecutionRepository(WorkflowNodeExecutionRepository)
# Only cache if we have a node_execution_id to use as the cache key
if db_model.node_execution_id:
logger.debug(f"Updating cache for node_execution_id: {db_model.node_execution_id}")
self._node_execution_cache[db_model.node_execution_id] = db_model
self._node_execution_cache[db_model.node_execution_id] = execution

def get_by_node_execution_id(self, node_execution_id: str) -> Optional[NodeExecution]:
"""

Notiek ielāde…
Atcelt
Saglabāt