Skip to content

Commit fe7d75d

Browse files
committed
fix: ensure worker count is properly converted to integer for max_requests
1 parent a8dc1e0 commit fe7d75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/management/commands/services/services/local_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def cmd(self):
2727
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
2828
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
2929
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
30-
max_requests = 10240 if worker > 1 else 0
30+
max_requests = 10240 if int(worker) > 1 else 0
3131
cmd = [
3232
'gunicorn', 'maxkb.wsgi:application',
3333
'-b', bind,

0 commit comments

Comments
 (0)