← back to Rentv Sheet Enrich Refine

run_local.sh

19 lines

#!/bin/bash
# Continuous $0 LOCAL enrichment: openclaw company-LinkedIn across all remaining master
# batches, propagating to all tabs every 5 batches. No rate limit. Logs to run_local.log.
cd ~/Projects/rentv-sheet-enrich
n=0
for f in data/mbatches/m_*.json; do
  [ "$f" = "data/mbatches/m_01.json" ] && continue
  echo "=== $(basename $f) $(date +%H:%M:%S) ===" >> run_local.log
  python3 local_li.py "$f" >> run_local.log 2>&1
  n=$((n+1))
  if [ $((n % 5)) -eq 0 ]; then
    echo "--- propagate (after $n batches) ---" >> run_local.log
    python3 propagate.py >> run_local.log 2>&1
  fi
done
echo "--- final propagate ---" >> run_local.log
python3 propagate.py >> run_local.log 2>&1
echo "ALL LOCAL BATCHES DONE $(date +%H:%M:%S)" >> run_local.log