Commit 239977e0 authored by Sebastian Friedl's avatar Sebastian Friedl
Browse files

Fix subprocess pool thread limitation

parent ff89560d
......@@ -185,7 +185,7 @@ def main():
return handler
with Pool(processes=min(cpu_count(), 8), maxtasksperchild=1) as p:
with Pool(processes=max(cpu_count(), 8), maxtasksperchild=1) as p:
for sty, src in STYLES:
for (weight, (adobe_weight, verb_weight)), italic in product(INSTANCES.items(), (False, True)):
p.apply_async(slice_font, (sty, src, weight, adobe_weight, verb_weight, italic), error_callback=term(p))
......
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