#!/bin/bash
cd /root/gov_crawler
while true; do
  completed=
  if [  = yes ]; then
    echo [13:04:19] All batches done! >> /tmp/batch_scheduler_output.log
    break
  fi
  echo [13:04:19] Running next batch... >> /tmp/batch_scheduler_output.log
  python3 batch_scheduler.py >> /tmp/batch_scheduler_output.log 2>&1
  sleep 2
done
