mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
- Add get_app_workers_attribute() to read workers class attribute - Update _parse_app_specs() to check class attribute when no config override - Add Docker-based e2e tests for per-app worker allocation - Add test apps: HeavyModelApp (workers=2), LightweightApp - Add unit tests for get_app_workers_attribute function - Add integration tests for class attribute detection
14 lines
314 B
YAML
14 lines
314 B
YAML
services:
|
|
gunicorn:
|
|
build:
|
|
context: ../../..
|
|
dockerfile: tests/docker/per_app_allocation/Dockerfile
|
|
ports:
|
|
- "8001:8000"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 30
|
|
stop_grace_period: 10s
|