mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
5b2fefd150
commit
1f18f77b64
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue