Server Hooks
on_starting
Default:
def on_starting(server):
pass
Called just before the master process is initialized.
The callable needs to accept a single instance variable for the Arbiter.
on_reload
Default:
def on_reload(server):
pass
Called to recycle workers during a reload via SIGHUP.
The callable needs to accept a single instance variable for the Arbiter.
when_ready
Default:
def when_ready(server):
pass
Called just after the server is started.
The callable needs to accept a single instance variable for the Arbiter.
pre_fork
Default:
def pre_fork(server, worker):
pass
Called just before a worker is forked.
The callable needs to accept two instance variables for the Arbiter and new Worker.
post_fork
Default:
def post_fork(server, worker):
pass
Called just after a worker has been forked.
The callable needs to accept two instance variables for the Arbiter and new Worker.
post_worker_init
Default:
def post_worker_init(worker):
pass
Called just after a worker has initialized the application.
The callable needs to accept one instance variable for the initialized Worker.
worker_int
Default:
def worker_int(worker):
pass
Called just after a worker exited on SIGINT or SIGQUIT.
The callable needs to accept one instance variable for the initialized Worker.
worker_abort
Default:
def worker_abort(worker):
pass
Called when a worker received the SIGABRT signal.
This call generally happens on timeout.
The callable needs to accept one instance variable for the initialized Worker.
pre_exec
Default:
def pre_exec(server):
pass
Called just before a new master process is forked.
The callable needs to accept a single instance variable for the Arbiter.
pre_request
Default:
def pre_request(worker, req):
worker.log.debug("%s %s" % (req.method, req.path))
Called just before a worker processes the request.
The callable needs to accept two instance variables for the Worker and the Request.
post_request
Default:
def post_request(worker, req, environ, resp):
pass
Called after a worker processes the request.
The callable needs to accept two instance variables for the Worker and the Request.
child_exit
Default:
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.
New in version 19.7.
worker_exit
Default:
def worker_exit(server, worker):
pass
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.
nworkers_changed
Default:
def nworkers_changed(server, new_value, old_value):
pass
Called just after num_workers has been changed.
The callable needs to accept an instance variable of the Arbiter and two integers of number of workers after and before change.
If the number of workers is set for the first time, old_value would be None.
on_exit
Default:
def on_exit(server):
pass
Called just before exiting Gunicorn.
The callable needs to accept a single instance variable for the Arbiter.
版权声明:除特别注明外,本站所有文章均为王晨曦个人站点原创
转载请注明:出处来自王晨曦个人站点 » gunicorn server hook 说明
出发地 ihnibohvsl http://www.g7d0pq768b0uta8y1m55278z2dbq9fs8s.org/ aihnibohvsl [url=http://www.g7d0pq768b0uta8y1m55278z2dbq9fs8s.org/]uihnibohvsl[/url]
Discount Small Stove Wood Burner Product Wholesale Aluminium Accessories Product Pricelist High-Quality Kids Dresser Knobs Quotes Suppliers CE Certification Fan Woodburner Pricelist Products High-Quality Small Stove Wood Burner Company sudexspertpro.ru
CE Certification Fisheye Cctv Supplier, Manufacturer OEM Dual Lens Camera Cctv , Factory OEM Cctv Color Factories, Manufacturer CE Certification Cctv Provider Factory, Manufacturer OEM Cctv Cameras Manufacturers store.megedcare.com
www.intouch.com.tn China High Quality Excavator EC210B Factories, Supplier High-Quality transmission filter Factory, Supplier China VOLVO Filter Cartridge Manufacturers, Factory Wholesale 11110668 High-Quality 2184406 Factories, Suppliers
barunhr.ivyro.net OEM Keyed Shaft Coupling Suppliers Factory OEM Changing Valve Seats Supplier Factory ODM Solid Shaft Couplers Suppliers Factory OEM Removing Valve Seals Manufacturer Factory OEM Removing Valve Seats Factory Suppliers
High-Quality Largest Overhead Crane Manufacturer Factories Best Motorized Gantry Crane Manufacturer Factory Best Wall Mounted Jib Crane Manufacturers Company home.gaucbc.org OEM Articulating Jib Crane Company Manufacturer OEM Overhead Crane Systems Companies Factory
OEM Original 1 X 4 Coffee Filters Factories Manufacturer www.emsfitnesspro.ru Custom Die Cut Doily Paper Postcard Manufacturers Products Custom Wrapping Paper Roll Christmas Products Manufacturers OEM Silicone Paper Bags Self Seel Factories Products OEM Silicone Oil Paper Jumbo Roll Product Factories
China Motor Grader Videos Suppliers Manufacturer China Backhoe Loader Used Factories Suppliers China Used Backhoe Loader Factories Supplier Wholesale Cat Heavy Equipment Wholesale Sany Mini Excavator
Best Traveling Jib Crane Manufacturers Factory health.gaucbc.org OEM Gantry Crane Device Manufacturers Factories Best Motorised Jib Crane Companies Manufacturer OEM 80 Ton Gantry Crane Company Factories Best Overhead Crane Lift Manufacturer Factory
arkbaria.xsrv.jp
www.donbosco.pe.kr
贝博足彩 贝博足彩 www.mediahype.pk 澳门博狗 贝博足彩 赌厅网投
在线赌场游戏 贝博足彩 赌厅网投 borisevo.myjino.ru 在线赌场游戏 在线赌场游戏