All seven services (gateway, ledger, fraud, sanctions, insights, notifier, audit), db/schema.sql plus optional_indexes.sql, scripts/seed.py and smoke.py, the gateway-served frontend, and docker-compose.yml. Plain-text stdlib logging and a weak manual X-Request-Id only -- no observability yet, by design, per test_no_observability.py. Implements all 13 named chaos-flag pathologies from docs/PATHOLOGIES.md behind Redis-backed runtime flags. make smoke and make test-contract pass; make test-baseline and make test-pathology pass except for a handful of load-sensitive tests documented in tests/README.md rather than papered over.
9 lines
232 B
Python
9 lines
232 B
Python
"""slow_consumer -- phase-0-base-project-spec.md §7. Owned by `notifier`."""
|
|
from common.chaos_flags import is_enabled
|
|
|
|
SLEEP_SECONDS = 0.25
|
|
|
|
|
|
async def slow_consumer_enabled() -> bool:
|
|
return await is_enabled("slow_consumer")
|