From dddc54ab1ccde5663fa80d50cfe1bd8d217a25e0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 11 Nov 2022 16:33:44 +0100 Subject: [PATCH] Remove ProcessPool from exporting It's ignoring exceptions and makes debugging way too hard to justify what's happening --- git-importer.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/git-importer.py b/git-importer.py index 6394d4f..a97d2ab 100755 --- a/git-importer.py +++ b/git-importer.py @@ -1,7 +1,6 @@ #!/usr/bin/python3 import argparse -import concurrent.futures import logging import pathlib import sys @@ -113,17 +112,8 @@ def main(): importer = Importer(URL_OBS, "openSUSE:Factory", args.packages) importer.import_into_db() - if len(args.packages) != 1: - with concurrent.futures.ProcessPoolExecutor(max_workers=8) as executor: - fs = [ - executor.submit( - export_package, package, args.repodir, args.cachedir, args.gc - ) - for package in args.packages - ] - concurrent.futures.wait(fs) - else: - export_package(args.packages[0], args.repodir, args.cachedir, args.gc) + for package in args.packages: + export_package(package, args.repodir, args.cachedir, args.gc) if __name__ == "__main__":