Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VectifyAI/OpenKB
/ kb_ingest_lock
Function
kb_ingest_lock
openkb/locks.py:173–175 ·
view source on GitHub ↗
Hold an exclusive KB mutation lock.
(openkb_dir: Path)
Source
from the content-addressed store, hash-verified
171
172
173
def
kb_ingest_lock(openkb_dir: Path):
174
""
"Hold an exclusive KB mutation lock."
""
175
return
kb_lock(openkb_dir, exclusive=True)
176
177
178
def
kb_read_lock(openkb_dir: Path):
Callers
12
test_exclusive_lock_drains_active_journal_before_yielding
Function · 0.90
test_recover_skips_malformed_journal_without_bricking_lock
Function · 0.90
test_write_lock_is_reentrant
Function · 0.90
test_read_to_write_upgrade_fails
Function · 0.90
test_write_lock_can_take_nested_read
Function · 0.90
add_single_file
Function · 0.90
wrapper
Function · 0.90
run_lint
Function · 0.90
lint
Function · 0.90
convert_document
Function · 0.90
_handle_slash
Function · 0.90
run_chat
Function · 0.90
Calls
1
kb_lock
Function · 0.85
Tested by
5
test_exclusive_lock_drains_active_journal_before_yielding
Function · 0.72
test_recover_skips_malformed_journal_without_bricking_lock
Function · 0.72
test_write_lock_is_reentrant
Function · 0.72
test_read_to_write_upgrade_fails
Function · 0.72
test_write_lock_can_take_nested_read
Function · 0.72