MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / write_journal

Method write_journal

openkb/mutation.py:162–164  ·  view source on GitHub ↗
(self, status: str)

Source from the content-addressed store, hash-verified

160 }
161
162 def write_journal(self, status: str) -> None:
163 self.journal_path.parent.mkdir(parents=True, exist_ok=True)
164 atomic_write_json(self.journal_path, self._journal_data(status))
165
166 def mark_committed(self) -> None:
167 """Mark the journal committed without removing the backup.

Callers 5

mark_committedMethod · 0.95
track_newMethod · 0.95
rollbackMethod · 0.95
snapshot_pathsFunction · 0.95
recover_pending_journalsFunction · 0.80

Calls 2

_journal_dataMethod · 0.95
atomic_write_jsonFunction · 0.90

Tested by

no test coverage detected