Skip to content

Commit 22fb0b5

Browse files
Merge remote-tracking branch 'origin/v2' into v2
2 parents 83814b3 + fe7d75d commit 22fb0b5

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)