We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181e915 commit 014f22aCopy full SHA for 014f22a
src/bootstrap/bootstrap.py
@@ -13,7 +13,7 @@
13
import tarfile
14
import tempfile
15
16
-from time import time
+from time import time, sleep
17
18
# Acquire a lock on the build directory to make sure that
19
# we don't cause a race condition while building
@@ -42,8 +42,10 @@ def acquire_lock(build_dir):
42
while True:
43
try:
44
curs.execute("BEGIN EXCLUSIVE")
45
+ break
46
except sqlite3.OperationalError:
47
pass
48
+ sleep(0.25)
49
return curs
50
except ImportError:
51
print("warning: sqlite3 not available in python, skipping build directory lock")
0 commit comments