Fix issue with world job still being rendered

feature/motorway_junction
lukasmartinelli 2016-06-23 14:13:56 +02:00
rodzic 6bfb975afd
commit 246f85855f
3 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -106,7 +106,7 @@ export-worker:
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_S3_HOST: "${AWS_S3_HOST}"
BUCKET_NAME: "osm2vectortiles-testing"
RENDER_TIMEOUT: "1200"
RENDER_TIMEOUT: "300"
export:
image: "osm2vectortiles/export"
command: ./export-local.sh

Wyświetl plik

@ -110,8 +110,6 @@ def pyramid_jobs(x, y, z, job_zoom, max_zoom):
yield create_pyramid_job(tile.x, tile.y, min_zoom=tile.z,
max_zoom=max_zoom, bounds=bounds)
bounds = mercantile.bounds(0 , 0 , 0)
yield create_pyramid_job(0, 0, min_zoom=0, max_zoom=job_zoom-1, bounds=bounds)
if __name__ == '__main__':
args = docopt(__doc__, version='0.1')

Wyświetl plik

@ -17,7 +17,7 @@ function generate_world_jobs() {
python generate_jobs.py pyramid "$TILE_X" "$TILE_Y" "$TILE_Z" --job-zoom="$JOB_ZOOM" > $jobs_file
if [ "$WORLD_JOB" = true ] ; then
if [ "$WORLD_JOB" == "true" ] ; then
python generate_jobs.py pyramid "0" "0" "0" --job-zoom="0" --max-zoom="$((JOB_ZOOM-1))" >> $jobs_file
fi