Skip to content

Commit

Permalink
Fix sporadic Connection aborted PPR backend error
Browse files Browse the repository at this point in the history
  • Loading branch information
janikkaden committed Aug 10, 2023
1 parent 6ad42e0 commit b90620f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pipeline/routing/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ if [ "$RUN_PREPROCESSING" = "y" ] || [ "$RUN_PREPROCESSING" = "Y" ] || [ "$RUN_A

# restart the PPR backend container to reload the new routing graph file
# before restarting, check if the container is already running
if [ "$(docker inspect -f '{{.State.Running}}' osm2vdv462_ppr_backend)" = "running" ]; then
if [ "$(docker inspect -f '{{.State.Status}}' osm2vdv462_ppr_backend)" = "running" ]; then
echo "Restarting PPR backend container ..."
docker-compose restart osm2vdv462_ppr_backend
docker-compose up -d osm2vdv462_ppr_backend --force-recreate
else
docker-compose up -d osm2vdv462_ppr_backend
fi
Expand All @@ -31,7 +31,6 @@ else
fi

echo "Waiting for PPR container to start ..."
sleep 10

# perform healthcheck on the PPR container and wait until the routing graph is loaded
# it is not possible to do this in docker compose, because the container would need a tool like curl or wget to perform the healthcheck
Expand Down

0 comments on commit b90620f

Please sign in to comment.