MCPcopy Create free account
hub / github.com/Xeron2000/openOii / build_postgres_checkpointer

Function build_postgres_checkpointer

backend/app/orchestration/persistence.py:91–98  ·  view source on GitHub ↗
(database_url: str)

Source from the content-addressed store, hash-verified

89
90 lock = _checkpointer_setup_locks.setdefault(conn_str, asyncio.Lock())
91 async with lock:
92 if _checkpointer_setup_states.get(conn_str):
93 return
94
95 logger.debug(
96 "ensure_postgres_checkpointer_setup: connecting to %s",
97 redact_credentials(conn_str),
98 )
99 conn = await asyncpg.connect(conn_str)
100 try:
101 for statement in _BOOTSTRAP_STATEMENTS:

Callers 4

_checkpoint_historyFunction · 0.90
_run_phase2_graphMethod · 0.90
resume_from_recoveryMethod · 0.90