fix: ensure worker count is properly converted to integer for max_requests
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 '
|
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
|
||||||
bind = f'127.0.0.1:6060'
|
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 = [
|
cmd = [
|
||||||
'gunicorn', 'maxkb.wsgi:application',
|
'gunicorn', 'maxkb.wsgi:application',
|
||||||
'-b', bind,
|
'-b', bind,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue