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

Method handle_usr2

gunicorn/arbiter.py:334–341  ·  view source on GitHub ↗

\ SIGUSR2 handling. Creates a new arbiter/worker set as a fork of the current arbiter without affecting old workers. Use this to do live deployment with the ability to backout a change.

(self)

Source from the content-addressed store, hash-verified

332 self.kill_dirty_arbiter(signal.SIGUSR1)
333
334 def handle_usr2(self):
335 """\
336 SIGUSR2 handling.
337 Creates a new arbiter/worker set as a fork of the current
338 arbiter without affecting old workers. Use this to do live
339 deployment with the ability to backout a change.
340 """
341 self.reexec()
342
343 def handle_winch(self):
344 """SIGWINCH handling"""

Callers

nothing calls this directly

Calls 1

reexecMethod · 0.95

Tested by

no test coverage detected