Skip to main content

KernelDB.reacquire()

Reopen the DB connection after release().

Usage

Source

KernelDB.reacquire(
    *,
    max_retries=6,
    initial_delay=0.1,
)

DuckDB enforces single-writer access via a file lock. If another process took the lock during our release window, retry with exponential backoff (~6.4s max with defaults) before giving up — short bursts of contention are common when two CLI processes overlap their network phases (C5).