mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 10:11:30 +08:00
spawn_process no longer clears manual_stop; spawning is now policy-neutral. Clearing the flag is owned by start_process and restart_process (which already do it), and the respawn paths (retry_backoff, restart_pending) only run when the flag is already false. A manually stopped companion now keeps manual_stop set through its exit, so it settles in STOPPED and is not auto-restarted. Add tests: manual_stop preserved through exit, start clears it, spawn leaves it untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>