Disable parallel conversions

Temporarily limit conversions to one at a time until timeout limitations
are resolved: https://github.com/freedomofpress/dangerzone/issues/257
This commit is contained in:
deeplow 2022-11-23 10:55:37 +00:00
parent 5b2fefd150
commit 1f18f77b64
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -292,7 +292,12 @@ def convert(
def get_max_parallel_conversions() -> int:
n_cpu = 1
# FIXME hardcoded 1 until timeouts are more limited and better handled
# https://github.com/freedomofpress/dangerzone/issues/257
return 1
n_cpu = 1 # type: ignore [unreachable]
if platform.system() == "Linux":
# if on linux containers run natively
cpu_count = os.cpu_count()