mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 03:01:31 +08:00
Add a lightweight chat simulator demonstrating dirty worker streaming: - Token-by-token SSE streaming via async generators - FastAPI endpoint with browser UI - Multiple canned responses based on keywords - Docker deployment with docker-compose - Integration tests for SSE protocol Update docs/content/dirty.md to link to both examples.
9 lines
165 B
Python
9 lines
165 B
Python
bind = "0.0.0.0:8000"
|
|
workers = 2
|
|
worker_class = "asgi"
|
|
|
|
# Dirty worker config
|
|
dirty_apps = ["streaming_chat.chat_app:ChatApp"]
|
|
dirty_workers = 1
|
|
dirty_timeout = 60
|