X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=d2b133b74fab208397eaa5d962d18066dae3a33a;hb=da201d18245b2d401887899591d4ddfa288eaa9c;hp=194559c2076f70ccead7159aa7c37c3cb8971e49;hpb=c20a288af636458a404f8f92b499ba3c17b240e0;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py index 194559c2..d2b133b7 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -276,15 +276,13 @@ def main(): examine_package.use_html=1 - pool = DakProcessPool() + pool = DakProcessPool(processes=5) p = pool.map_async(do_pkg, changes_files) pool.close() - try: - p.get(timeout=600) - except TimeoutError: - for htmlfile in htmlfiles_to_process: - with open(htmlfile, "w") as fd: - fd.write("Timed out while processing") + p.wait(timeout=600) + for htmlfile in htmlfiles_to_process: + with open(htmlfile, "w") as fd: + fd.write("Timed out while processing") files = set(os.listdir(cnf["Show-New::HTMLPath"])) to_delete = filter(lambda x: x.endswith(".html"), files.difference(set(sources)))