Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyopencl/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, cleanup_m, cache_dir):
pass

from time import sleep
sleep(1)
sleep(0.05)

attempts += 1

Expand All @@ -98,8 +98,8 @@ def __init__(self, cleanup_m, cache_dir):
warn("could not obtain cache lock--delete '%s' if necessary"
% self.lock_file)

if attempts > 3 * 60:
raise RuntimeError("waited more than three minutes "
if attempts > 60 / 0.05:
raise RuntimeError("waited more than one minute "
"on the lock file '%s'"
"--something is wrong" % self.lock_file)

Expand Down