From 6e62a06d990963bca7542501a79a24ac65596110 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Thu, 13 Feb 2025 17:08:35 -0800 Subject: [PATCH] default to None, as 0 would raise a ValueError Co-authored-by: Masen Furer --- reflex/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/app.py b/reflex/app.py index e25ccd805..b03059683 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -1197,12 +1197,12 @@ class App(MiddlewareMixin, LifespanMixin): match executor_type: case ExecutorType.PROCESS: executor = concurrent.futures.ProcessPoolExecutor( - max_workers=environment.REFLEX_COMPILE_PROCESSES.get(), + max_workers=environment.REFLEX_COMPILE_PROCESSES.get() or None, mp_context=multiprocessing.get_context("fork"), ) case ExecutorType.THREAD: executor = concurrent.futures.ThreadPoolExecutor( - max_workers=environment.REFLEX_COMPILE_THREADS.get() + max_workers=environment.REFLEX_COMPILE_THREADS.get() or None ) case ExecutorType.MAIN_THREAD: T = TypeVar("T")