Skip to content

Commit

Permalink
fix: do not continue to poll raw-data-api on failure (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock authored Aug 5, 2024
1 parent a4b985e commit 60b7f16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osm_rawdata/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,10 @@ def queryRemote(

log.debug(f"Current status: {response_status}")

# First check to see if FAILURE and stop polling
if response_status == "FAILURE":
break

# response_status options: STARTED, PENDING, SUCCESS
if (
response_status != "SUCCESS"
Expand Down

0 comments on commit 60b7f16

Please sign in to comment.