MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / database_wait

Function database_wait

atomic-agent/src/turn/orchestrator/wait_budget.rs:22–24  ·  view source on GitHub ↗

Budget for opening the repository database when another process may hold the writer lock (session starts, ledger reads, checkpoint publication). The shared database-open budget — the daemon's opens wait on the same knob. Override with `ATOMIC_DB_LOCK_WAIT_MS`.

()

Source from the content-addressed store, hash-verified

20/// The shared database-open budget — the daemon's opens wait on the same
21/// knob. Override with `ATOMIC_DB_LOCK_WAIT_MS`.
22pub fn database_wait() -> Duration {
23 atomic_repository::database_lock_wait()
24}
25
26/// Budget a Stop waits for another session's Stop to finish publishing its
27/// ledger under the cross-process publication lock.

Calls 1

database_lock_waitFunction · 0.85

Tested by

no test coverage detected