Limit the workers to 8
This is hard coding the limit, we may want to make this configurable but for now the machines supposed to run this code are very similiar
This commit is contained in:
@@ -113,7 +113,7 @@ def main():
|
||||
|
||||
importer = Importer(URL_OBS, "openSUSE:Factory", args.packages)
|
||||
importer.import_into_db()
|
||||
with concurrent.futures.ProcessPoolExecutor() as executor:
|
||||
with concurrent.futures.ProcessPoolExecutor(max_workers=8) as executor:
|
||||
fs = [
|
||||
executor.submit(
|
||||
export_package, package, args.repodir, args.cachedir, args.gc
|
||||
|
Reference in New Issue
Block a user