auto-sync: 2026-04-20 17:10:01
This commit is contained in:
@@ -49,9 +49,8 @@ def daily_job():
|
|||||||
try:
|
try:
|
||||||
conn = get_conn()
|
conn = get_conn()
|
||||||
flights = yandex_fetch_day(target, conn)
|
flights = yandex_fetch_day(target, conn)
|
||||||
enriched = opensky_enrich_day(target, conn)
|
_last_run.update(status="ok", flights=flights, enriched=0)
|
||||||
_last_run.update(status="ok", flights=flights, enriched=enriched)
|
log.info("daily_job: done — %d flights", flights)
|
||||||
log.info("daily_job: done — %d flights, %d enriched", flights, enriched)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
_last_run["status"] = f"error: {e}"
|
_last_run["status"] = f"error: {e}"
|
||||||
log.error("daily_job failed: %s", e)
|
log.error("daily_job failed: %s", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user