diff --git a/docs/source/settings.rst b/docs/source/settings.rst index a180dd57..ab91dc19 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -1020,6 +1020,23 @@ Called after a worker processes the request. The callable needs to accept two instance variables for the Worker and the Request. +.. _child-exit: + +child_exit +~~~~~~~~~~ + +* :: + + def child_exit(server, worker): + pass + +Called just after a worker has been exited, in the master process. + +The callable needs to accept two instance variables for the Arbiter and +the just-exited Worker. + +.. versionadded: 19.7 + .. _worker-exit: worker_exit @@ -1030,7 +1047,7 @@ worker_exit def worker_exit(server, worker): pass -Called just after a worker has been exited. +Called just after a worker has been exited, in the worker process. The callable needs to accept two instance variables for the Arbiter and the just-exited Worker. diff --git a/gunicorn/config.py b/gunicorn/config.py index bdfa3418..834aae72 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -1661,6 +1661,8 @@ class ChildExit(Setting): The callable needs to accept two instance variables for the Arbiter and the just-exited Worker. + + .. versionadded: 19.7 """