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

Method kill_workers

gunicorn/arbiter.py:751–758  ·  view source on GitHub ↗

\ Kill all workers with the signal `sig` :attr sig: `signal.SIG*` value

(self, sig)

Source from the content-addressed store, hash-verified

749 time.sleep(0.1 * random.random())
750
751 def kill_workers(self, sig):
752 """\
753 Kill all workers with the signal `sig`
754 :attr sig: `signal.SIG*` value
755 """
756 worker_pids = list(self.WORKERS.keys())
757 for pid in worker_pids:
758 self.kill_worker(pid, sig)
759
760 def kill_worker(self, pid, sig):
761 """\

Callers 3

handle_usr1Method · 0.95
handle_winchMethod · 0.95
stopMethod · 0.95

Calls 2

kill_workerMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected