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

Method handle_usr1

gunicorn/arbiter.py:323–332  ·  view source on GitHub ↗

\ SIGUSR1 handling. Kill all workers by sending them a SIGUSR1

(self)

Source from the content-addressed store, hash-verified

321 self.manage_workers()
322
323 def handle_usr1(self):
324 """\
325 SIGUSR1 handling.
326 Kill all workers by sending them a SIGUSR1
327 """
328 self.log.reopen_files()
329 self.kill_workers(signal.SIGUSR1)
330 # Forward to dirty arbiter
331 if self.dirty_arbiter_pid:
332 self.kill_dirty_arbiter(signal.SIGUSR1)
333
334 def handle_usr2(self):
335 """\

Callers 1

Calls 3

kill_workersMethod · 0.95
kill_dirty_arbiterMethod · 0.95
reopen_filesMethod · 0.45

Tested by 1