Add docs for post_init

This commit is contained in:
Philip Cristiano 2013-06-20 18:56:37 -04:00
parent 161d9ea676
commit ef6f831971

View File

@ -561,6 +561,19 @@ Called just after a worker has been forked.
The callable needs to accept two instance variables for the Arbiter and The callable needs to accept two instance variables for the Arbiter and
new Worker. 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 pre_exec
~~~~~~~~ ~~~~~~~~