gunicorn/tests/docker/dirty_arbiter/docker-compose.yml
Benoit Chesneau 5e3c07d11d test(dirty): add Docker-based parent death integration tests
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.
2026-01-25 10:23:25 +01:00

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