Files
dashboard-cpsp/docker/edge_sync_loop.sh
T

9 lines
219 B
Bash

#!/bin/sh
# Sub-minute chicken counting + mortality + weight edge sync.
set -eu
cd /app
while true; do
/usr/local/bin/python manage.py sync_chicken_counting_from_edge >> /var/log/cron.log 2>&1 || true
sleep 30
done