File size: 838 Bytes
83adb51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
set -e

ROAMIFY=/home/joe/repo_dev/roamify
PYTHON=/home/joe/repo_dev/roamify/.venv/bin/python3
LOG=$ROAMIFY/warmup_batch.log

# Cities to process, in order
CITIES=(
  "Cape Town"
  "Rio de Janeiro"
  "Istanbul"
  "Dubai"
  "Seoul"
  "Bali"
  "Prague"
  "San Francisco"
  "Marrakech"
  "Kyoto"
)

echo "=== Batch warmup started $(date) ===" > "$LOG"

for city in "${CITIES[@]}"; do
  echo ""
  echo "═══ Processing: $city ═══" | tee -a "$LOG"
  echo "Started: $(date)" >> "$LOG"

  cd "$ROAMIFY"
  if $PYTHON scripts/warmup.py --city "$city" >> "$LOG" 2>&1; then
    echo "✅ $city — DONE at $(date)" | tee -a "$LOG"
  else
    echo "❌ $city — FAILED at $(date)" | tee -a "$LOG"
    echo "See $LOG for details"
    exit 1
  fi
done

echo ""
echo "🎉 All cities complete at $(date)" | tee -a "$LOG"