Merge remote-tracking branch 'origin/v2' into v2

v3.2
liqiang-fit2cloud 2025-11-07 11:02:27 +08:00
commit 22fb0b55bf
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class GunicornLocalModelService(BaseService):
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
max_requests = 10240 if worker > 1 else 0
max_requests = 10240 if int(worker) > 1 else 0
cmd = [
'gunicorn', 'maxkb.wsgi:application',
'-b', bind,