From ef6f831971a0e1bedb7a21a1f6f85a9df99caccc Mon Sep 17 00:00:00 2001 From: Philip Cristiano Date: Thu, 20 Jun 2013 18:56:37 -0400 Subject: [PATCH] Add docs for post_init --- docs/source/settings.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 66dfebd6..f4705267 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -561,6 +561,19 @@ Called just after a worker has been forked. The callable needs to accept two instance variables for the Arbiter and new Worker. +post_init +~~~~~~~~~ + +* :: + + def post_init(worker): + pass + +Called just after a worker has initialized the application. + +The callable needs to accept one instance variable for the initialized +Worker. + pre_exec ~~~~~~~~