提交 ed58b5db authored 作者: Frederic's avatar Frederic

Do not make Theano cache code delete the lock directory. This fix problems…

Do not make Theano cache code delete the lock directory. This fix problems happening in the daily buildbot due to concurrent Theano process.
上级 97fdeaaa
...@@ -673,6 +673,10 @@ class ModuleCache(object): ...@@ -673,6 +673,10 @@ class ModuleCache(object):
continue continue
if not os.path.isdir(root): if not os.path.isdir(root):
continue continue
# Some sub directory we do not want the cache to mess
# with. This can cause problems with multiple process.
if os.path.split(root)[1] in ["lock_dir"]:
continue
files = os.listdir(root) files = os.listdir(root)
if not files or 'delete.me' in files: if not files or 'delete.me' in files:
rmtree(root, ignore_nocleanup=True, rmtree(root, ignore_nocleanup=True,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论