mirror of
https://github.com/langgenius/dify.git
synced 2026-03-16 12:27:42 +08:00
Avoid drain_queue and race condition caused by drain queue. The current approach starts a background thread and buffer in-fly events to an intermediate queue.Queue. The queue is bound and will drop events once it's full.