Skip to main content
Version: latest

agrag.ingestion.match_blocks.acquire_match_write_lock

acquire_match_write_lock(transaction:GraphStoreTransaction) -> None

Acquire the graph's shared lock before reading or changing matches.

Neo4j holds the lock record's write lock until the transaction commits. FalkorDB runs one transaction at a time within a store instance, so this lock does not order writers in separate processes there. Take this lock before a job fence: the lock order is the match lock, then the job lock.