Skip to content

Commit fa0cd61

Browse files
fix: ensure worker count is properly converted to integer for max_requests
1 parent 9a0fa37 commit fa0cd61

File tree

1 file changed

+1
-1
lines changed
  • apps/common/management/commands/services/services

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def cmd(self):
1818

1919
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
2020
bind = f'127.0.0.1:6060'
21-
max_requests = 10240 if self.worker > 1 else 0
21+
max_requests = 10240 if int(self.worker) > 1 else 0
2222
cmd = [
2323
'gunicorn', 'maxkb.wsgi:application',
2424
'-b', bind,

0 commit comments

Comments
 (0)