|
| 1 | +import socket |
| 2 | +from types import FrameType |
| 3 | +from typing import ClassVar |
| 4 | + |
| 5 | +from gunicorn.app.base import BaseApplication |
| 6 | +from gunicorn.config import Config |
| 7 | +from gunicorn.glogging import Logger as GLogger |
| 8 | +from gunicorn.workers.base import Worker |
| 9 | + |
| 10 | +from ._types import _AddressType |
| 11 | +from .pidfile import Pidfile |
| 12 | + |
| 13 | +class Arbiter: |
| 14 | + WORKER_BOOT_ERROR: ClassVar[int] |
| 15 | + APP_LOAD_ERROR: ClassVar[int] |
| 16 | + START_CTX: ClassVar[dict[int | str, str | list[str]]] |
| 17 | + LISTENERS: ClassVar[list[socket.socket]] |
| 18 | + WORKERS: ClassVar[dict[int, Worker]] |
| 19 | + PIPE: ClassVar[list[int]] |
| 20 | + SIG_QUEUE: ClassVar[list[int]] |
| 21 | + SIGNALS: ClassVar[list[int]] |
| 22 | + SIG_NAMES: ClassVar[dict[int, str]] |
| 23 | + log: GLogger | None |
| 24 | + pidfile: Pidfile | None |
| 25 | + systemd: bool |
| 26 | + worker_age: int |
| 27 | + reexec_pid: int |
| 28 | + master_pid: int |
| 29 | + master_name: str |
| 30 | + pid: int |
| 31 | + app: BaseApplication |
| 32 | + cfg: Config |
| 33 | + worker_class: type[Worker] |
| 34 | + address: list[_AddressType] |
| 35 | + timeout: int |
| 36 | + proc_name: str |
| 37 | + num_workers: int |
| 38 | + |
| 39 | + def __init__(self, app: BaseApplication) -> None: ... |
| 40 | + def setup(self, app: BaseApplication) -> None: ... |
| 41 | + def start(self) -> None: ... |
| 42 | + def init_signals(self) -> None: ... |
| 43 | + def signal(self, sig: int, frame: FrameType | None) -> None: ... |
| 44 | + def run(self) -> None: ... |
| 45 | + def handle_chld(self, sig: int, frame: FrameType | None) -> None: ... |
| 46 | + def handle_hup(self) -> None: ... |
| 47 | + def handle_term(self) -> None: ... |
| 48 | + def handle_int(self) -> None: ... |
| 49 | + def handle_quit(self) -> None: ... |
| 50 | + def handle_ttin(self) -> None: ... |
| 51 | + def handle_ttou(self) -> None: ... |
| 52 | + def handle_usr1(self) -> None: ... |
| 53 | + def handle_usr2(self) -> None: ... |
| 54 | + def handle_winch(self) -> None: ... |
| 55 | + def maybe_promote_master(self) -> None: ... |
| 56 | + def wakeup(self) -> None: ... |
| 57 | + def halt(self, reason: str | None = None, exit_status: int = 0) -> None: ... |
| 58 | + def sleep(self) -> None: ... |
| 59 | + def stop(self, graceful: bool = True) -> None: ... |
| 60 | + def reexec(self) -> None: ... |
| 61 | + def reload(self) -> None: ... |
| 62 | + def murder_workers(self) -> None: ... |
| 63 | + def reap_workers(self) -> None: ... |
| 64 | + def manage_workers(self) -> None: ... |
| 65 | + def spawn_worker(self) -> int: ... |
| 66 | + def spawn_workers(self) -> None: ... |
| 67 | + def kill_workers(self, sig: int) -> None: ... |
| 68 | + def kill_worker(self, pid: int, sig: int) -> None: ... |
0 commit comments