update sync data from site dashboard and testing closing cycles
This commit is contained in:
1 parent
36639d8c38
commit
f49e72592c
42 files changed
+1966
-688
No files matched your search
+3
-17
@@ -27,24 +27,10 @@ BOOTSTRAP_STAFF_PASSWORD=
|
||||
# Optional: fixed API key for active-site inbound / scripts (hashed at rest)
|
||||
BOOTSTRAP_API_KEY=
|
||||
|
||||
# City-edge syncs OFF at HQ — data should arrive via active-site mirror sync.
|
||||
# Enable only if this box also pulls directly from edge services.
|
||||
KARUNG_WEB_ADMIN_SYNC_ENABLED=false
|
||||
IOT_SYNC_ENABLED=false
|
||||
CHICKEN_COUNTING_EDGE_COUNTING_SYNC_ENABLED=false
|
||||
CHICKEN_COUNTING_EDGE_MORTALITY_SYNC_ENABLED=false
|
||||
CHICKEN_COUNTING_EDGE_WEIGHT_SYNC_ENABLED=false
|
||||
# HQ mirror pull from farm pusat export APIs (ops + IoT)
|
||||
ACTIVE_SITE_MIRROR_SYNC_ENABLED=true
|
||||
ACTIVE_SITE_MIRROR_CLOSED_LIMIT=3
|
||||
|
||||
# Dashboard publish cutoff (WIB): day D visible from 17:00 on day D
|
||||
DASHBOARD_PUBLISH_HOUR=17
|
||||
DASHBOARD_PUBLISH_MINUTE=0
|
||||
|
||||
# Optional edge endpoints (unused while sync flags are false)
|
||||
KARUNG_WEB_ADMIN_BASE_URL=http://host.docker.internal:5000
|
||||
KARUNG_WEB_ADMIN_TIMEOUT_SECONDS=30
|
||||
IOT_API_BASE_URL=
|
||||
IOT_SYNC_LOOKBACK_MINUTES=20
|
||||
IOT_SYNC_MAX_PAGES=10
|
||||
IOT_FLOCK_ID_MAP={}
|
||||
CHICKEN_COUNTING_EDGE_BASE_URL=
|
||||
CHICKEN_COUNTING_EDGE_TIMEOUT_SECONDS=30
|
||||
@@ -3,8 +3,11 @@ PATH=/usr/local/bin:/usr/bin:/bin
|
||||
|
||||
# NOTE: docker/entrypoint-cron.sh regenerates this file from DASHBOARD_PUBLISH_HOUR/MINUTE
|
||||
# at container start. Edge syncs no-op when *_SYNC_ENABLED=false (HQ default).
|
||||
# Active-site mirror pull is ON by default (ACTIVE_SITE_MIRROR_SYNC_ENABLED).
|
||||
|
||||
*/10 * * * * root cd /app && /usr/local/bin/python manage.py sync_iot_from_api >> /var/log/cron.log 2>&1
|
||||
*/10 * * * * root cd /app && /usr/local/bin/python manage.py sync_chicken_counting_from_edge >> /var/log/cron.log 2>&1
|
||||
|
||||
*/30 * * * * root cd /app && /usr/local/bin/python manage.py sync_active_sites_from_farm >> /var/log/cron.log 2>&1
|
||||
|
||||
0 17 * * * root cd /app && /usr/local/bin/python manage.py sync_karung_from_web_admin >> /var/log/cron.log 2>&1 && /usr/local/bin/python manage.py recompute_kpi_rollups >> /var/log/cron.log 2>&1
|
||||
Reference in new issue
Block a user