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:
parent
e0fbbdaa5e
commit
7b0e1fe5fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue