mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #4450 from mvdbeek/fix_file_lock_error
[17.01] Fix file lock error handling
This commit is contained in:
@@ -69,9 +69,9 @@ def ensure_installed(installable_context, install_func, auto_init):
|
||||
|
||||
try:
|
||||
if auto_init and os.access(parent_path, os.W_OK):
|
||||
with FileLock(os.path.join(parent_path, desc.lower())):
|
||||
with FileLock(os.path.join(parent_path, desc.lower()), timeout=300):
|
||||
return _check()
|
||||
else:
|
||||
return _check()
|
||||
except FileLockException:
|
||||
return ensure_installed(installable_context, auto_init)
|
||||
raise Exception("Failed to get file lock for %s" % os.path.join(parent_path, desc.lower()))
|
||||
|
||||
Reference in New Issue
Block a user