File size: 426 Bytes
d2f9ca7 e24894a d2f9ca7 ac751b2 d2f9ca7 ac751b2 e24894a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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()
|