aboutsummaryrefslogtreecommitdiffstats
path: root/gunicorn_config.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-14 20:49:44 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-14 20:49:44 +0100
commit8534bfaf3f75435e18489eb363bf04786ba79255 (patch)
tree55d3b0af6f899f9117b0afbc4b8b2b42fae9c72f /gunicorn_config.py
parentMigration runner and migrations (#69) (diff)
Gunicorn is super picky about when_ready arity
Diffstat (limited to 'gunicorn_config.py')
-rw-r--r--gunicorn_config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gunicorn_config.py b/gunicorn_config.py
index 00e5ccf0..37a91367 100644
--- a/gunicorn_config.py
+++ b/gunicorn_config.py
@@ -6,7 +6,11 @@ STRIP_REGEX = re.compile(r"<[^<]+?>")
WIKI_TABLE = "wiki"
-def when_ready(server=None, output_func=None):
+def when_ready(server=None):
+ _when_ready(server=server)
+
+
+def _when_ready(server=None, output_func=None):
""" server hook that only runs when the gunicorn master process loads """
if server: