Skip to content
Snippets Groups Projects
Commit 0ac647aa authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add timeout to lock wait

parent 7de91ee6
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,10 @@ class LockManager(CleanupBase):
from warnings import warn
warn("could not obtain lock--delete '%s' if necessary"
% self.lock_file)
if attempts > 3 * 60:
raise RuntimeError("waited more than three minutes "
"on the lock file '%s'"
"--something is wrong" % self.lock_file)
cleanup_m.register(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment