Skip to content

Commit

Permalink
fix DB concurrency DB is locked (#14410)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Aug 2, 2023
1 parent 95316bb commit b9ff56f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conan/internal/cache/db/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def __init__(self, filename):

@contextmanager
def db_connection(self):
connection = sqlite3.connect(self.filename, isolation_level=None,
timeout=1, check_same_thread=False)
connection = sqlite3.connect(self.filename, isolation_level=None, timeout=10)
try:
yield connection
finally:
Expand Down

0 comments on commit b9ff56f

Please sign in to comment.