Commit 1b9f03d5 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Pass files one by one to wfcollector

parent b172a5e3
......@@ -144,10 +144,11 @@ def seedtree(content):
p.wait()
def wfcatalog(content):
# launch wfcatalog updates, 100 files for each run
wfcollector = WFCatalogCollector(to_stdout=True)
files = json.dumps(content.splitlines())
wfcollector.process({'update': True, 'force': True, 'csegs': True, 'flags': True, 'list': files})
# launch wfcatalog updates, file by file
# in a docker container, passing multiple files at once seems to fail
for f in content.splitlines():
wfcollector = WFCatalogCollector(to_stdout=True)
wfcollector.process({'update': True, 'force': True, 'csegs': True, 'flags': True, 'file': f})
if __name__ == "__main__":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment