mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-27 05:30:39 +00:00
* fix(persistence): wait out a peer's Postgres bootstrap past command_timeout The bootstrap advisory lock was taken with a blocking pg_advisory_lock on the app engine, whose asyncpg command_timeout (30s by default) also bounds that statement. A second Gateway instance therefore failed startup with TimeoutError whenever another instance's migration outlasted the timeout. Poll the non-blocking pg_try_advisory_lock instead: each attempt returns immediately and stays bounded by command_timeout, while the wait lasts as long as the holder's migration. The wait is logged once. * docs(changelog): reference #6306 in the bootstrap lock entry * docs(persistence): describe polled bootstrap lock in the migrations guide --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>