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

Method help

gunicorn/ctl/handlers.py:561–585  ·  view source on GitHub ↗

Return list of available commands. Returns: Dictionary with commands and descriptions

(self)

Source from the content-addressed store, hash-verified

559 return []
560
561 def help(self) -> dict:
562 """
563 Return list of available commands.
564
565 Returns:
566 Dictionary with commands and descriptions
567 """
568 commands = {
569 "show all": "Show all processes (arbiter, web workers, dirty workers)",
570 "show workers": "List HTTP workers with their status",
571 "show dirty": "List dirty workers and apps",
572 "show config": "Show current effective configuration",
573 "show stats": "Show server statistics",
574 "show listeners": "Show bound sockets",
575 "worker add [N]": "Spawn N workers (default 1)",
576 "worker remove [N]": "Remove N workers (default 1)",
577 "worker kill <PID>": "Gracefully terminate specific worker",
578 "dirty add [N]": "Spawn N dirty workers (default 1)",
579 "dirty remove [N]": "Remove N dirty workers (default 1)",
580 "reload": "Graceful reload (HUP)",
581 "reopen": "Reopen log files (USR1)",
582 "shutdown [graceful|quick]": "Shutdown server (TERM/INT)",
583 "help": "Show this help message",
584 }
585 return {"commands": commands}

Callers 2

test_helpMethod · 0.95
_execute_commandMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_helpMethod · 0.76