From 7b0e1fe5fdcf1d769a7bf1df0be7694eea28b24c Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Sat, 14 May 2022 00:14:04 +0200 Subject: [PATCH] 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. --- sources/org.osbuild.curl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/org.osbuild.curl b/sources/org.osbuild.curl index 6a7dfadc..93fe7b6c 100755 --- a/sources/org.osbuild.curl +++ b/sources/org.osbuild.curl @@ -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)