mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Add docs for post_init
This commit is contained in:
parent
161d9ea676
commit
ef6f831971
@ -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
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user