mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 08:42:21 +00:00
fix(news): keep a refused key refused during a slow read, and read Local when Conflicts fails
A slow re-read of a refused key read as unavailable until it landed; it now stays refused. The first-read wait is 10 s, for a margin under the browser's 15 s. A failed Conflicts read no longer stops Local's refresh, which the server reads on its own. Tests cover GDELT's wait, the refused key and a caller abort past the timeout, and fail rather than hang; the docs say what a section serves meanwhile.
This commit is contained in:
1 parent
c6ae4c44d7
commit
61424e4256
7 files changed
+176
-42
No files matched your search
@@ -145,9 +145,11 @@ Status: Open (limits)
|
||||
- A country's own stories in Local keep World News API's category (politics as
|
||||
political, business as economy, else other) and carry no severity; fighting
|
||||
there shows through the Conflicts reports placed in the area.
|
||||
- When World News API takes over 12 s to answer a country's first read, Local
|
||||
reads unavailable until the layer's next refresh (up to 2 minutes), which is
|
||||
served from that read.
|
||||
- When World News API takes 10 to 20 s to answer a country's first read, Local
|
||||
reads unavailable until it is asked again (the next refresh, every 2 minutes
|
||||
while the tab is shown, or the camera settling in another half-degree cell,
|
||||
or a section switch), which is served from that read. A read over 20 s fails
|
||||
and is tried again with the first ask a minute or more later.
|
||||
- Local needs a World News API key. Its free plan allows 50 points a day; Core
|
||||
stops at `WORLDNEWSAPI_DAILY_READS` reads (default 30) and Local then says the
|
||||
daily limit is reached.
|
||||
|
||||
Reference in new issue
Block a user