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 91cefe6 commit ced9206Copy full SHA for ced9206
frameworks/Python/granian/requirements.txt
@@ -1,4 +1,4 @@
1
asyncpg==0.29.0
2
-granian>=1.5.1,<1.6.0
+granian>=1.6.0,<1.7.0
3
jinja2==3.1.4
4
orjson==3.10.2
frameworks/Python/granian/run.py
@@ -7,9 +7,11 @@
7
if __name__ == '__main__':
8
interface = sys.argv[1]
9
threading_mode = sys.argv[2]
10
+ workers = multiprocessing.cpu_count()
11
- #: split cores between the two loops
12
- workers = round(multiprocessing.cpu_count() / 2)
+ if interface == "rsgi":
13
+ #: split cores between the two loops
14
+ workers = round(workers / 2)
15
16
blocking_threads = None
17
if interface == "wsgi":
0 commit comments