planisphere 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/planisphere/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4af3c44db9246f3b374a35b952f572cd53ffdd7644b62a4b755326ec3a232ca
|
|
4
|
+
data.tar.gz: 96ee69da21f3e2035a921802a50a764ec8369032582723faa3b463b1b2b67c47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59ef3d9244c5844a0ecf14718f1175c183992d1c81deebc55d3b2054879ed6d5d85613ce5c82512b1ad79c57588d6ddc51d5751ef9f7c6c5eb20f247d689eee3
|
|
7
|
+
data.tar.gz: ee8589778e03c12c98f8be44b71737780880cf4ea492d36062a6e48cff0d391c4c07d1ae6b1e7e499e7aaf036d7f008c0cea832a5cfdb6e32736121274791710
|
data/README.md
CHANGED
|
@@ -203,6 +203,17 @@ error. Then it claims jobs from `worker.queue` one at a time and runs the sync i
|
|
|
203
203
|
(about 4.5 GB).
|
|
204
204
|
- A sync already running on the schema (a manual `geocoder sync`) holds its lock; the job
|
|
205
205
|
then waits 15 minutes and tries again. Two syncs never run at once.
|
|
206
|
+
- Geofabrik can redirect `-latest` to a dated file that is not published yet, and that
|
|
207
|
+
file answers 404 for hours (a morning release seen published at 09:41 UTC). Schedule the
|
|
208
|
+
sync after Geofabrik publishes, around midday UTC (`cron = "30 12 * * *"`). Source errors
|
|
209
|
+
that pass are retried hourly instead of burning the attempts on quick backoff: a 404 on
|
|
210
|
+
the extract or its `.md5` (their URLs come from Geofabrik's index), HTTP 408, 429 and
|
|
211
|
+
5xx, a stalled or timed-out transfer, a refused or reset connection, a name that does
|
|
212
|
+
not resolve. When every country that failed failed that way (or for disk space), the job
|
|
213
|
+
waits 1 hour and tries again; `geocoder sync` exits non-zero with "Geofabrik has not
|
|
214
|
+
published the extract yet or is temporarily unavailable ... try again later". A country
|
|
215
|
+
the index cannot resolve, an ambiguous extract, a checksum that still mismatches after a
|
|
216
|
+
completed download, an unreadable PBF and database errors are real failures.
|
|
206
217
|
- On SIGTERM or SIGINT a running sync gets `shutdown_grace_secs` (20) to finish. After
|
|
207
218
|
that it is stopped (the country being loaded rolls back, finished countries stay) and the
|
|
208
219
|
job goes back to the queue with its attempt refunded.
|
data/lib/planisphere/version.rb
CHANGED