Skip to content

Commit 3a94fec

Browse files
committed
Merge pull request #4149 from mboersma/fix-worker-bounds
fix(controller): prevent < 1 gunicorn workers
2 parents d568115 + f85a186 commit 3a94fec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

controller/templates/gconf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
bind = '0.0.0.0'
22
try:
33
workers = int({{ if exists "/deis/controller/workers" }}{{ getv "/deis/controller/workers" }}{{ else }}"not set"{{end}})
4+
if workers < 1:
5+
raise ValueError()
46
except (NameError, ValueError):
57
import multiprocessing
68
try:

0 commit comments

Comments
 (0)