Skip to content

Commit 207eaaf

Browse files
committed
Merge pull request #4149 from mboersma/fix-worker-bounds
fix(controller): prevent < 1 gunicorn workers
2 parents e2b9c12 + a51bd8b commit 207eaaf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)