mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
Add comprehensive Docker integration tests verifying dirty arbiter lifecycle under realistic conditions: - Parent death detection via ppid monitoring - Orphan cleanup on restart - Dirty arbiter respawning after crash - Graceful shutdown with SIGTERM Also fix race condition in manage_workers() by checking self.alive before spawning new workers during shutdown.
14 lines
303 B
YAML
14 lines
303 B
YAML
services:
|
|
gunicorn:
|
|
build:
|
|
context: ../../..
|
|
dockerfile: tests/docker/dirty_arbiter/Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 30
|
|
stop_grace_period: 10s
|