We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a5feb commit 809ff5fCopy full SHA for 809ff5f
reflex/utils/processes.py
@@ -19,6 +19,7 @@
19
from rich.progress import Progress
20
21
from reflex import constants
22
+from reflex.config import get_config
23
from reflex.environment import environment
24
from reflex.utils import console, path_ops, prerequisites
25
from reflex.utils.registry import get_npm_registry
@@ -42,6 +43,9 @@ def get_num_workers() -> int:
42
43
Returns:
44
The number of backend worker processes.
45
"""
46
+ if get_config().transport == "polling":
47
+ return 1
48
+
49
if (redis_client := prerequisites.get_redis_sync()) is None:
50
return 1
51
0 commit comments