Throttle and schedule buffered output delivery

This commit is contained in:
2026-02-17 05:46:43 +09:00
parent 3effedf07d
commit 51e63a0f85
7 changed files with 169 additions and 4 deletions

View File

@@ -25,6 +25,10 @@ class Config:
# Buffer
output_buffer_interval: float = float(os.getenv("OUTPUT_BUFFER_INTERVAL", "2.0"))
output_settle_seconds: float = float(os.getenv("OUTPUT_SETTLE_SECONDS", "4.0"))
output_flush_interval_seconds: float = float(
os.getenv("OUTPUT_FLUSH_INTERVAL_SECONDS", "15.0")
)
max_message_length: int = int(os.getenv("MAX_MESSAGE_LENGTH", "3000"))
# Status reporting / reconnect