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

Method check_config

gunicorn/workers/gasgi.py:42–46  ·  view source on GitHub ↗

Validate configuration for ASGI worker.

(cls, cfg, log)

Source from the content-addressed store, hash-verified

40
41 @classmethod
42 def check_config(cls, cfg, log):
43 """Validate configuration for ASGI worker."""
44 if cfg.threads > 1:
45 log.warning("ASGI worker does not use threads configuration. "
46 "Use worker_connections instead.")
47
48 def init_process(self):
49 """Initialize the worker process."""

Callers 3

startMethod · 0.45

Calls 1

warningMethod · 0.45