Skip to content

fix(location): shorten agent location re-check staleness 24h → 2h - #151

Merged
guohai merged 1 commit into
mainfrom
fix/location-recheck-2h
Sep 3, 2026
Merged

fix(location): shorten agent location re-check staleness 24h → 2h#151
guohai merged 1 commit into
mainfrom
fix/location-recheck-2h

Conversation

@guohai

@guohai guohai commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

An agent that registered before the GeoIP databases existed sat Unverified for up to a day (observed live on prod). A re-check is a sub-ms local mmdb lookup plus one row update, and flap protection lives in REGION_CHANGE_STABILITY (3 consecutive matching observations), not in this window — so 2h is strictly better than 24h.

Verified: 75/75 across location/location-catalog/geoip-refresh suites, npm run check clean.

Generated with SMT smt@agora.build

An agent that registered before the GeoIP databases existed sat Unverified
for up to a day; a re-check is a sub-ms local lookup, and flap protection
lives in REGION_CHANGE_STABILITY, so a 2h window is strictly better.

🤖 Built with SMT <smt@agora.build>
@guohai
guohai merged commit 6f9fb77 into main Sep 3, 2026
@guohai
guohai deleted the fix/location-recheck-2h branch September 3, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant