feat: add automated crons, telemetry cleanup, RTL support, and manual road candidate tools

This commit is contained in:
Hamza-Ayed
2026-07-15 17:14:01 +03:00
parent 0bb609d5a2
commit 7a64be5833
6 changed files with 353 additions and 161 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
# --------------------------------------------------------------------------
# Setup Host-Level Crontab for Intaleq Map Platform
# --------------------------------------------------------------------------
set -e
echo "Setting up crontab for map-saas..."
CRON_FILE="/tmp/map_saas_cron"
# 1. Update Map Data (OSM/Overture) every 10 days at 3:00 AM
echo "0 3 */10 * * /home/hamzadoctor/app/infrastructure/scripts/update-data.sh >> /home/hamzadoctor/app/infrastructure/logs/update-data.log 2>&1" > $CRON_FILE
# 2. Discover road closures daily at 4:00 AM
echo "0 4 * * * curl -X POST -H \"x-api-key: intaleq_secret_2026\" http://localhost:3200/api/map-refinement/roads/discover-closures >> /home/hamzadoctor/app/infrastructure/logs/closures.log 2>&1" >> $CRON_FILE
# Install crontab
crontab $CRON_FILE
rm $CRON_FILE
echo "✅ Crontab installed successfully!"
crontab -l