Validate configuration for ASGI worker.
(cls, cfg, log)
| 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.""" |