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.
2 parents 83814b3 + fe7d75d commit 22fb0b5Copy full SHA for 22fb0b5
apps/common/management/commands/services/services/local_model.py
@@ -27,7 +27,7 @@ def cmd(self):
27
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
28
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
29
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
30
- max_requests = 10240 if worker > 1 else 0
+ max_requests = 10240 if int(worker) > 1 else 0
31
cmd = [
32
'gunicorn', 'maxkb.wsgi:application',
33
'-b', bind,
0 commit comments