mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: ensure worker count is properly converted to integer for max_requests
This commit is contained in:
parent
a8dc1e00d4
commit
fe7d75d720
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue