MCPcopy
hub / github.com/benoitc/gunicorn / handle_hup

Method handle_hup

gunicorn/arbiter.py:278–289  ·  view source on GitHub ↗

\ HUP handling. - Reload configuration - Start the new worker processes with a new configuration - Gracefully shutdown the old worker processes

(self)

Source from the content-addressed store, hash-verified

276 handle_cld = handle_chld
277
278 def handle_hup(self):
279 """\
280 HUP handling.
281 - Reload configuration
282 - Start the new worker processes with a new configuration
283 - Gracefully shutdown the old worker processes
284 """
285 self.log.info("Hang up: %s", self.master_name)
286 self.reload()
287 # Forward to dirty arbiter
288 if self.dirty_arbiter_pid:
289 self.kill_dirty_arbiter(signal.SIGHUP)
290
291 def handle_term(self):
292 "SIGTERM handling"

Callers 1

Calls 3

reloadMethod · 0.95
kill_dirty_arbiterMethod · 0.95
infoMethod · 0.45

Tested by 1