Browse Source

chore: update robyn (#9340)

Sanskar Jethi 9 months ago
parent
commit
2f858b0951

+ 2 - 2
frameworks/Python/robyn/app-const.py

@@ -8,8 +8,8 @@ from robyn.argument_parser import Config
 class SpecialConfig(Config):
     def __init__(self):
         super().__init__()
-        self.workers = (os.cpu_count() * 2) + 1
-        self.processes = os.cpu_count()
+        self.workers = 2
+        self.processes = ( os.cpu_count() * 2 ) + 1
         self.log_level = "WARN"
 
 

+ 2 - 2
frameworks/Python/robyn/app.py

@@ -8,8 +8,8 @@ from robyn.argument_parser import Config
 class SpecialConfig(Config):
     def __init__(self):
         super().__init__()
-        self.workers = (os.cpu_count() * 2) + 1
-        self.processes = os.cpu_count()
+        self.workers = 2
+        self.processes = ( os.cpu_count() * 2 ) + 1
         self.log_level = "WARN"
 
 

+ 1 - 1
frameworks/Python/robyn/requirements-const.txt

@@ -1,2 +1,2 @@
 uvloop==0.19.0
-robyn==0.60.2
+robyn==0.62.0

+ 1 - 1
frameworks/Python/robyn/requirements.txt

@@ -1,2 +1,2 @@
 uvloop==0.19.0
-robyn==0.60.2
+robyn==0.62.0

+ 1 - 1
frameworks/Python/robyn/robyn-const.dockerfile

@@ -8,4 +8,4 @@ RUN pip3 install -r /robyn/requirements-const.txt
 
 EXPOSE 8080
 
-CMD ["robyn", "app-const.py", "--fast"]
+CMD ["python", "app-const.py", "--log-level", "warn"]

+ 1 - 1
frameworks/Python/robyn/robyn.dockerfile

@@ -8,4 +8,4 @@ RUN pip3 install -r /robyn/requirements.txt
 
 EXPOSE 8080
 
-CMD ["robyn", "app.py", "--fast"]
+CMD ["python", "app.py", "--log-level", "warn"]