fix: concurrent block update rollback [LET-6695] (#8133)

fix: concurrent block update rollback
This commit is contained in:
cthomas
2025-12-29 12:06:02 -08:00
committed by Caren Thomas
parent fa9a98351d
commit 0dd1df306a
3 changed files with 28 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ from letta.errors import (
AgentFileImportError,
AgentNotFoundForExportError,
BedrockPermissionError,
ConcurrentUpdateError,
EmbeddingConfigRequiredError,
HandleNotFoundError,
LettaAgentNotFoundError,
@@ -493,6 +494,7 @@ def create_application() -> "FastAPI":
app.add_exception_handler(ForeignKeyConstraintViolationError, _error_handler_409)
app.add_exception_handler(UniqueConstraintViolationError, _error_handler_409)
app.add_exception_handler(IntegrityError, _error_handler_409)
app.add_exception_handler(ConcurrentUpdateError, _error_handler_409)
app.add_exception_handler(PendingApprovalError, _error_handler_409)
app.add_exception_handler(NoActiveRunsToCancelError, _error_handler_409)