Ver código fonte

fix: db_model save to _node_execution_cache (#19911)

tags/1.4.1
非法操作 5 meses atrás
pai
commit
bbebf9ad3e
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
api/core/repositories/sqlalchemy_workflow_node_execution_repository.py Ver arquivo

@@ -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]:
"""

Carregando…
Cancelar
Salvar