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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -0
  3. data/lib/planisphere/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33112773c54b1ce30a41a7c3a04a8d7d52082f0717b31b69aff89dab92da5737
4
- data.tar.gz: 596ee13e55acce0b1514d2d504ad433c709573e827239e7f7a636b0733751257
3
+ metadata.gz: a4af3c44db9246f3b374a35b952f572cd53ffdd7644b62a4b755326ec3a232ca
4
+ data.tar.gz: 96ee69da21f3e2035a921802a50a764ec8369032582723faa3b463b1b2b67c47
5
5
  SHA512:
6
- metadata.gz: e57edc976c818efdb33c15dc2e78f813401c20f8e55aa07354374eb56a20d42a38296dea74e6a25d5df65d39a54112f2df1598baf4d24afa6c9b066d8e09c40c
7
- data.tar.gz: ca88419fd928eeb5df613e802fc84bf7675b6bdf352253b28acfc7b41d92cf73c70b5f8161554279d73a80711d10b66ea524a07157869cf5a75dcba1e7f4fa30
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Planisphere
4
- VERSION = '0.1.8' # x-release-please-version
4
+ VERSION = '0.1.9' # x-release-please-version
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planisphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih