Remove ProcessPool from exporting
It's ignoring exceptions and makes debugging way too hard to justify what's happening
This commit is contained in:
parent
4d1ca8d882
commit
dddc54ab1c
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import concurrent.futures
|
|
||||||
import logging
|
import logging
|
||||||
import pathlib
|
import pathlib
|
||||||
import sys
|
import sys
|
||||||
@ -113,17 +112,8 @@ def main():
|
|||||||
|
|
||||||
importer = Importer(URL_OBS, "openSUSE:Factory", args.packages)
|
importer = Importer(URL_OBS, "openSUSE:Factory", args.packages)
|
||||||
importer.import_into_db()
|
importer.import_into_db()
|
||||||
if len(args.packages) != 1:
|
for package in args.packages:
|
||||||
with concurrent.futures.ProcessPoolExecutor(max_workers=8) as executor:
|
export_package(package, args.repodir, args.cachedir, args.gc)
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user