mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-16 23:43:03 +00:00
The background asyncio task scheduled in the previous fix had a race: if a second emitter for the same message_id started within the 30s grace window, the pending DELETE would fire mid-stream and wipe the new run's log. Switch to shortening the key's TTL instead. EXPIRE is race-free — a second emitter's eager truncate at creation resets the key and its subsequent EXPIRE calls in _stream_log_append extend the TTL normally. Same 30s post-done retention window, same clean-up behavior, no background task to reason about. |
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements-min.txt | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||