bat-6's picture
feat: implement database synchronization queue with SQL triggers and a background worker for automated FAISS index rebuilding.
ac751b2
Raw
History Blame Contribute Delete
426 Bytes
import sys
from pathlib import Path
# Ensure workspace root is in path
sys.path.append(str(Path(__file__).resolve().parents[2]))
from src.similarity_model.sync_worker import run_worker
def sync_projects():
"""
Entry point to run the event-driven synchronization worker.
This replaces the old 60-second polling-based full-table scan loop.
"""
run_worker()
if __name__ == "__main__":
sync_projects()