Skip to content

Commit

Permalink
Shot in the dark: use serializable isolation level
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Jan 25, 2023
1 parent 9572102 commit 7e50d1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pbench/server/database/models/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,9 @@ def setvalue(dataset: Dataset, key: str, value: Any, user_id: Optional[str] = No
) from e
return

Database.db_session.connection(
execution_options={"isolation_level": "SERIALIZABLE"}
)
try:
meta = Metadata.get(dataset, native_key, user_id)

Expand Down

0 comments on commit 7e50d1e

Please sign in to comment.