From 8534bfaf3f75435e18489eb363bf04786ba79255 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 14 May 2018 20:49:44 +0100 Subject: Gunicorn is super picky about when_ready arity --- gunicorn_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gunicorn_config.py') 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: -- cgit v1.2.3