Skip to content

Commit

Permalink
Track sequence and timestamp of last update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 22, 2023
1 parent d658907 commit 09b86cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# DO NOT EDIT - This file is being maintained by Chef

sequence="$1"
timestamp="$2"

render_expired \
--map=default \
--socket=/var/run/renderd/renderd.sock \
Expand All @@ -10,3 +13,6 @@ render_expired \
--touch-from=13 < /var/lib/replicate/dirty-tiles.txt

rm -f /var/lib/replicate/dirty-tiles.txt

echo "$sequence" > /var/log/replicate/sequence.txt
echo "$timestamp" > /var/log/replicate/timestamp.txt

0 comments on commit 09b86cc

Please sign in to comment.