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

Method manage_dirty_arbiter

gunicorn/arbiter.py:931–940  ·  view source on GitHub ↗

\ Maintain the dirty arbiter process by respawning if needed.

(self)

Source from the content-addressed store, hash-verified

929 self.dirty_arbiter = None
930
931 def manage_dirty_arbiter(self):
932 """\
933 Maintain the dirty arbiter process by respawning if needed.
934 """
935 if self.dirty_arbiter_pid:
936 return # Already running
937
938 if self.cfg.dirty_workers > 0 and self.cfg.dirty_apps:
939 self.log.info("Spawning dirty arbiter...")
940 self.spawn_dirty_arbiter()
941
942 # =========================================================================
943 # Control Socket Management

Callers 1

runMethod · 0.95

Calls 2

spawn_dirty_arbiterMethod · 0.95
infoMethod · 0.45

Tested by

no test coverage detected