Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mlos_bench/mlos_bench/storage/sql/trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def update(
metrics = super().update(status, timestamp, metrics)
with self._engine.begin() as conn:
self._update_status(conn, status, timestamp)
# Use a separate transaction to avoid issues with PostgreSQL's duplicate key
# constraint handling. (See Issue #999).
with self._engine.begin() as conn:
try:
if status.is_completed():
# Final update of the status and ts_end:
Expand Down
Loading