3030)
3131
3232import pydantic .v1 as pydantic
33- from reflex_cli .constants .hosting import Hosting
3433
3534from reflex import constants
3635from reflex .base import Base
@@ -602,7 +601,7 @@ class EnvironmentVariables:
602601 # The npm registry to use.
603602 NPM_CONFIG_REGISTRY : EnvVar [str | None ] = env_var (None )
604603
605- # Whether to use Granian for the backend. Otherwise, use Uvicorn.
604+ # Whether to use Granian for the backend. By default, the backend uses Uvicorn if available .
606605 REFLEX_USE_GRANIAN : EnvVar [bool ] = env_var (False )
607606
608607 # The username to use for authentication on python package repository. Username and password must both be provided.
@@ -807,8 +806,8 @@ class Config: # pyright: ignore [reportIncompatibleVariableOverride]
807806 # Tailwind config.
808807 tailwind : dict [str , Any ] | None = {"plugins" : ["@tailwindcss/typography" ]}
809808
810- # Timeout when launching the gunicorn server. TODO(rename this to backend_timeout?)
811- timeout : int = 120
809+ # DEPRECATED. Timeout when launching the gunicorn server.
810+ timeout : int | None = None
812811
813812 # Whether to enable or disable nextJS gzip compression.
814813 next_compression : bool = True
@@ -819,22 +818,17 @@ class Config: # pyright: ignore [reportIncompatibleVariableOverride]
819818 # Additional frontend packages to install.
820819 frontend_packages : list [str ] = []
821820
822- # The hosting service backend URL.
823- cp_backend_url : str = Hosting .HOSTING_SERVICE
824- # The hosting service frontend URL.
825- cp_web_url : str = Hosting .HOSTING_SERVICE_UI
826-
827- # The worker class used in production mode
821+ # DEPRECATED. The worker class used in production mode
828822 gunicorn_worker_class : str = "uvicorn.workers.UvicornH11Worker"
829823
830- # Number of gunicorn workers from user
824+ # DEPRECATED. Number of gunicorn workers from user
831825 gunicorn_workers : int | None = None
832826
833- # Number of requests before a worker is restarted; set to 0 to disable
834- gunicorn_max_requests : int = 100
827+ # DEPRECATED. Number of requests before a worker is restarted; set to 0 to disable
828+ gunicorn_max_requests : int | None = None
835829
836- # Variance limit for max requests; gunicorn only
837- gunicorn_max_requests_jitter : int = 25
830+ # DEPRECATED. Variance limit for max requests; gunicorn only
831+ gunicorn_max_requests_jitter : int | None = None
838832
839833 # Indicate which type of state manager to use
840834 state_manager_mode : constants .StateManagerMode = constants .StateManagerMode .DISK
0 commit comments