Commit graph

2 commits

Author SHA1 Message Date
c70154ed61 fix(site-finder): Overpass retry-backoff + mirror fallback for utility loader (#1746)
All checks were successful
CI / changes (pull_request) Successful in 6s
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m50s
CI / backend-tests (pull_request) Successful in 11m7s
Public overpass-api.de throttled later heavy query-types (429/504) →
only ~1099/3000 utility elements loaded. Harden the loader:

- per-query retry-with-backoff on 429/5xx (esp. 504): up to 3 attempts
  per endpoint, exponential backoff (10s/30s/60s) + jitter, honoring the
  Retry-After header when present.
- mirror fallback: OVERPASS_ENDPOINTS list (overpass-api.de →
  kumi.systems → private.coffee); exhausting one endpoint rotates to the
  next mirror.
- inter-query delay bumped 1s → 3s (gentler on the public endpoint).
- a query that fails all retries+mirrors is logged and skipped
  (partial-load, not abort) — existing per-element SAVEPOINT/UPSERT kept.

Tests: 429-then-200 retry, persistent-429 primary → mirror fallback,
504 → mirror, all-fail skip-without-abort, one-failing-query-does-not-
abort-others, plus Retry-After/backoff helper units. All mocked, no
real Overpass.
2026-06-27 01:36:13 +05:00
3753079dee feat(site-finder): OSM engineering-networks loader + endpoint (#1746) (#1930)
All checks were successful
Deploy / changes (push) Successful in 7s
Deploy / build-backend (push) Successful in 1m53s
Deploy / build-worker (push) Successful in 3m6s
Deploy / build-frontend (push) Successful in 3m19s
Deploy / deploy (push) Successful in 1m26s
2026-06-26 20:01:00 +00:00