From 1f18f77b64e3430011c56e633f34bee44ae162db Mon Sep 17 00:00:00 2001 From: deeplow Date: Wed, 23 Nov 2022 10:55:37 +0000 Subject: [PATCH] Disable parallel conversions Temporarily limit conversions to one at a time until timeout limitations are resolved: https://github.com/freedomofpress/dangerzone/issues/257 --- dangerzone/container.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dangerzone/container.py b/dangerzone/container.py index 31a2413..053371f 100644 --- a/dangerzone/container.py +++ b/dangerzone/container.py @@ -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()