Skip to content

Commit

Permalink
fix(timeout): increased timeout for the stats api
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 28, 2025
1 parent 86f9e33 commit 17defae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from datetime import datetime, timedelta, timezone
from json import dumps
from json import loads as json_loads
from .post_processing.processor import PostProcessor

# Third party imports
import boto3
Expand Down Expand Up @@ -97,6 +96,8 @@
)
from src.validation.models import EXPORT_TYPE_MAPPING, RawDataOutputType

from .post_processing.processor import PostProcessor

if ENABLE_SOZIP:
# Third party imports
import sozipfile.sozipfile as zipfile
Expand Down Expand Up @@ -1070,7 +1071,7 @@ def get_osm_analytics_meta_stats(self):
try:
query = generate_polygon_stats_graphql_query(self.INPUT_GEOM)
payload = {"query": query}
response = requests.post(self.API_URL, json=payload, timeout=20)
response = requests.post(self.API_URL, json=payload, timeout=45)
response.raise_for_status()
return response.json()
except Exception as e:
Expand Down

0 comments on commit 17defae

Please sign in to comment.