sources: curl max_workers 2 * num_cpus

This changes the curl source to use the number of cpus times two
for its thread count. A conservative number but a commonly used
default.
This commit is contained in:
Simon de Vlieger 2022-05-14 00:14:04 +02:00 committed by Christian Kellner
parent e0fbbdaa5e
commit 7b0e1fe5fd

View file

@ -84,7 +84,7 @@ SCHEMA = """
class CurlSource(sources.SourceService):
content_type = "org.osbuild.files"
max_workers = 4
max_workers = 2 * os.cpu_count()
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)