Skip to content

Commit c63bbfe

Browse files
committed
Increase SQLite busy timeout to 30s to resolve 'database is locked' errors
1 parent 29b4ee3 commit c63bbfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beets/dbcore/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ class Database:
10531053
data is written in a transaction.
10541054
"""
10551055

1056-
def __init__(self, path, timeout: float = 5.0):
1056+
def __init__(self, path, timeout: float = 30.0):
10571057
if sqlite3.threadsafety == 0:
10581058
raise RuntimeError(
10591059
"sqlite3 must be compiled with multi-threading support"

0 commit comments

Comments
 (0)