Skip to content

Commit

Permalink
fix: improve check for raw-data-api success
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 15, 2024
1 parent ec5d2b9 commit 4518f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osm_rawdata/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def queryRemote(
log.debug(f"Current status: {response_status}")

# response_status options: STARTED, PENDING, SUCCESS
if response_status != "SUCCESS" or isinstance(task_info, str) or not task_info.get("download_url"):
if response_status != "SUCCESS" or not isinstance(task_info, dict) or not task_info.get("download_url"):
# Adjust polling frequency after the first minute
if elapsed_time > 60:
polling_interval = 10 # Poll every 10 seconds after the first minute
Expand Down

0 comments on commit 4518f34

Please sign in to comment.