Skip to content

Commit

Permalink
increase sqlite timeout from 10 to 20 (#17616)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Jan 23, 2025
1 parent e130969 commit df149cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conan/internal/cache/db/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def __init__(self, filename):

@contextmanager
def db_connection(self):
assert self._lock.acquire(timeout=10), "Conan failed to acquire database lock"
connection = sqlite3.connect(self.filename, isolation_level=None, timeout=10)
assert self._lock.acquire(timeout=20), "Conan failed to acquire database lock"
connection = sqlite3.connect(self.filename, isolation_level=None, timeout=20)
try:
yield connection
finally:
Expand Down

0 comments on commit df149cc

Please sign in to comment.