feat: set 3hr ttl for streaming background jobs (#4167)

This commit is contained in:
cthomas
2025-08-25 13:39:06 -07:00
committed by GitHub
parent f6c59b949c
commit dc83ff9f52

View File

@@ -28,7 +28,7 @@ class RedisSSEStreamWriter:
redis_client: AsyncRedisClient,
flush_interval: float = 0.5,
flush_size: int = 50,
stream_ttl_seconds: int = 21600, # 6 hours default
stream_ttl_seconds: int = 10800, # 3 hours default
max_stream_length: int = 10000, # Max entries per stream
):
"""