MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / run_sync

Function run_sync

tests/lib/tools/memory_sync/conftest.py:33–39  ·  view source on GitHub ↗

Drive one reconcile pass without clock bookkeeping. The public cadence path (``sync_if_due`` plus the clock) is exercised by the worker tests; unit tests call the pass directly.

(stores: SessionMemoryStores)

Source from the content-addressed store, hash-verified

31
32
33async def run_sync(stores: SessionMemoryStores) -> None:
34 """Drive one reconcile pass without clock bookkeeping.
35
36 The public cadence path (``sync_if_due`` plus the clock) is exercised
37 by the worker tests; unit tests call the pass directly.
38 """
39 await stores._sync_all(final=False) # pyright: ignore[reportPrivateUsage] -- the suite's one deterministic driver
40
41
42@contextmanager

Callers 15

download_session_skillsFunction · 0.85
_download_and_extractFunction · 0.85
_async_atomic_write_fileFunction · 0.85
_async_secure_mkdirFunction · 0.85
_async_read_file_contentFunction · 0.85
collect_itemsMethod · 0.85
viewMethod · 0.85
createMethod · 0.85
deleteMethod · 0.85
clear_all_memoryMethod · 0.85
create_rootMethod · 0.85

Calls 1

_sync_allMethod · 0.80

Tested by

no test coverage detected