mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 10:11:30 +08:00
Add restart_process(name) following supervisor's restart rules: it always clears manual_stop. RUNNING/STARTING are sent their stop_signal and enter STOPPING with restart_pending set and a deadline from reload_timeout; the reaper respawns them immediately once the old child exits. BACKOFF and STOPPED start again right away. STOPPING is rejected. It never rereads config. handle_exit now honors restart_pending first, respawning immediately (bumping restart_count) instead of going to STOPPED or BACKOFF. Add a restart_pending field on CompanionProcess. Add tests for the running, pending-reap, stopped, backoff, and stopping cases. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Generate Documentation
======================
Requirements
------------
To generate documentation you need to install:
- Python >= 3.7
- Sphinx (https://www.sphinx-doc.org/)
Generate html
-------------
::
$ make html
The command generates html document inside ``build/html`` dir.