mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: ensure worker count is properly converted to integer for max_requests
This commit is contained in:
parent
9a0fa37254
commit
fa0cd61584
|
|
@ -18,7 +18,7 @@ class SchedulerService(BaseService):
|
|||
|
||||
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
|
||||
bind = f'127.0.0.1:6060'
|
||||
max_requests = 10240 if self.worker > 1 else 0
|
||||
max_requests = 10240 if int(self.worker) > 1 else 0
|
||||
cmd = [
|
||||
'gunicorn', 'maxkb.wsgi:application',
|
||||
'-b', bind,
|
||||
|
|
|
|||
Loading…
Reference in New Issue