Skip to content

Commit

Permalink
Restored sqlite3 timeout as it was [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Jul 9, 2024
1 parent 4c46d43 commit 6bdca4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openquake/commonlib/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,6 @@ def __repr__(self):

db = Db(sqlite3.connect, os.path.expanduser(config.dbserver.file),
isolation_level=None, detect_types=sqlite3.PARSE_DECLTYPES,
timeout=60)
# NB: I am increasing the timeout from 5 to 60 seconds and the random
timeout=20)
# NB: I am increasing the timeout from 5 to 20 seconds and the random
# OperationalError: "database is locked" disappears in the WebUI tests

0 comments on commit 6bdca4d

Please sign in to comment.