Skip to content
Snippets Groups Projects
Commit b2f47760 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[experiments] Don't get out of loop until all cache job is done

parent ffb4adca
No related branches found
No related tags found
1 merge request!7Gevent
Pipeline #
...@@ -293,7 +293,6 @@ def caches(configuration, name, ls, delete, checksum): ...@@ -293,7 +293,6 @@ def caches(configuration, name, ls, delete, checksum):
if ls: if ls:
for g in glob.glob(k + '.*'): logger.info(g) for g in glob.glob(k + '.*'): logger.info(g)
return 0
if delete: if delete:
...@@ -302,12 +301,12 @@ def caches(configuration, name, ls, delete, checksum): ...@@ -302,12 +301,12 @@ def caches(configuration, name, ls, delete, checksum):
os.unlink(g) os.unlink(g)
common.recursive_rmdir_if_empty(os.path.dirname(k), configuration.cache) common.recursive_rmdir_if_empty(os.path.dirname(k), configuration.cache)
return 0
if checksum: if checksum:
assert load_data_index(configuration.cache, k + '.data') assert load_data_index(configuration.cache, k + '.data')
logger.info("index for `%s' can be loaded and checksums", k) logger.info("index for `%s' can be loaded and checksums", k)
return 0
return 0
def pull(webapi, prefix, names, force, indentation, format_cache): def pull(webapi, prefix, names, force, indentation, format_cache):
......
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