sovereign 0.25.1__py3-none-any.whl → 0.25.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sovereign might be problematic. Click here for more details.
- sovereign/schemas.py +6 -0
- {sovereign-0.25.1.dist-info → sovereign-0.25.2.dist-info}/METADATA +1 -1
- {sovereign-0.25.1.dist-info → sovereign-0.25.2.dist-info}/RECORD +6 -6
- {sovereign-0.25.1.dist-info → sovereign-0.25.2.dist-info}/LICENSE.txt +0 -0
- {sovereign-0.25.1.dist-info → sovereign-0.25.2.dist-info}/WHEEL +0 -0
- {sovereign-0.25.1.dist-info → sovereign-0.25.2.dist-info}/entry_points.txt +0 -0
sovereign/schemas.py
CHANGED
|
@@ -367,6 +367,8 @@ class SovereignAsgiConfig(BaseSettings):
|
|
|
367
367
|
worker_timeout: int = 30
|
|
368
368
|
worker_tmp_dir: str = "/dev/shm"
|
|
369
369
|
graceful_timeout: int = worker_timeout * 2
|
|
370
|
+
max_requests: int = 0
|
|
371
|
+
max_requests_jitter: int = 0
|
|
370
372
|
|
|
371
373
|
class Config:
|
|
372
374
|
fields = {
|
|
@@ -377,6 +379,8 @@ class SovereignAsgiConfig(BaseSettings):
|
|
|
377
379
|
"threads": {"env": "SOVEREIGN_THREADS"},
|
|
378
380
|
"preload_app": {"env": "SOVEREIGN_PRELOAD"},
|
|
379
381
|
"worker_timeout": {"env": "SOVEREIGN_WORKER_TIMEOUT"},
|
|
382
|
+
"max_requests": {"env": "SOVEREIGN_MAX_REQUESTS"},
|
|
383
|
+
"max_requests_jitter": {"env": "SOVEREIGN_MAX_REQUESTS_JITTER"},
|
|
380
384
|
}
|
|
381
385
|
|
|
382
386
|
def as_gunicorn_conf(self) -> Dict[str, Any]:
|
|
@@ -392,6 +396,8 @@ class SovereignAsgiConfig(BaseSettings):
|
|
|
392
396
|
"worker_class": self.worker_class,
|
|
393
397
|
"worker_tmp_dir": self.worker_tmp_dir,
|
|
394
398
|
"graceful_timeout": self.graceful_timeout,
|
|
399
|
+
"max_requests": self.max_requests,
|
|
400
|
+
"max_requests_jitter": self.max_requests_jitter,
|
|
395
401
|
}
|
|
396
402
|
|
|
397
403
|
|
|
@@ -16,7 +16,7 @@ sovereign/modifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
16
16
|
sovereign/modifiers/lib.py,sha256=DbXsxrrjnFE4Y7rbwpeiM5tS5w5NBwSdYH58AtDTP0I,2884
|
|
17
17
|
sovereign/modifiers/test.py,sha256=7_c2hWXn_sYJ6997N1_uSWtClOikcOzu1yRCY56-l-4,361
|
|
18
18
|
sovereign/response_class.py,sha256=beMAFV-4L6DwyWzJzy71GkEW4gb7fzH1jd8-Tul13cU,427
|
|
19
|
-
sovereign/schemas.py,sha256=
|
|
19
|
+
sovereign/schemas.py,sha256=FL0iQAftCVVFOL7r_l9scqllyMum0g2AD0qhMyONyg0,29025
|
|
20
20
|
sovereign/server.py,sha256=z8Uz1UYIZix0S40Srk774WIMDN2jl2SozO8irib0wc4,1402
|
|
21
21
|
sovereign/sources/__init__.py,sha256=g9hEpFk8j5i1ApHQpbc9giTyJW41Ppgsqv5P9zGxOJk,78
|
|
22
22
|
sovereign/sources/file.py,sha256=A4UWoRU39v2Ex5Mtdl_uw53iMkslYylF4CiiwW7LOpk,689
|
|
@@ -54,8 +54,8 @@ sovereign/views/crypto.py,sha256=o8NSyiUBy7v1pMOXt_1UBi68FNcGkXSlEVg9C18y8kY,332
|
|
|
54
54
|
sovereign/views/discovery.py,sha256=TVvWTMzWydsC-SNKL9WsSss_Hfnt2Ed4SVC2A8Na7Jo,5932
|
|
55
55
|
sovereign/views/healthchecks.py,sha256=_WkMunlrFpqGTLgtNtRr7gCsDCv5kiuYxCyTi-dMEKM,1357
|
|
56
56
|
sovereign/views/interface.py,sha256=Xi5F36Zn7ATbMtuhlE8f9xTEKj9T7GzHg6XLdb3bQjY,7023
|
|
57
|
-
sovereign-0.25.
|
|
58
|
-
sovereign-0.25.
|
|
59
|
-
sovereign-0.25.
|
|
60
|
-
sovereign-0.25.
|
|
61
|
-
sovereign-0.25.
|
|
57
|
+
sovereign-0.25.2.dist-info/LICENSE.txt,sha256=2X125zvAb9AYLjCgdMDQZuufhm0kwcg31A8pGKj_-VY,560
|
|
58
|
+
sovereign-0.25.2.dist-info/METADATA,sha256=U5K9Wu30LfB9NpQn0w2VCkPd799ixlNHTZKNjZa1Gyw,6465
|
|
59
|
+
sovereign-0.25.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
60
|
+
sovereign-0.25.2.dist-info/entry_points.txt,sha256=kOn848ucVbNvtsGABDuwzOHmNiOb0Ey8dV85Z3dLv3Y,222
|
|
61
|
+
sovereign-0.25.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|