Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(indexing): fence completion and failure by lease owner

3 months ago

d48ccc5
Authored
asta-nguyen8/11/2026, 4:12:32 PM
Add completeIndexing and failIndexing methods to RegistryRepository
that check index_build_owner in the WHERE clause, mirroring the
existing graph build fencing. Update index-workspace.ts to use these
fenced methods instead of the unfenced updateWorkspace for final
status writes. A stale lease holder can no longer overwrite the
status set by a newer lease owner.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parentb6adba7

4 files changed
  • packages/db/src/sqlite/registry-repository.ts+46−0
  • packages/db/src/sqlite/types.ts+14−0
  • packages/indexer/src/index-workspace.ts+5−10
  • tests/registry.test.ts+40−2