From 13a959711d223c559ded6176a7a241e8bafe3286 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 6 Nov 2023 18:56:22 +0000 Subject: [PATCH] Increase TTL and timeout for waste schedule --- agenda/waste_schedule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agenda/waste_schedule.py b/agenda/waste_schedule.py index e9b9994..b639193 100644 --- a/agenda/waste_schedule.py +++ b/agenda/waste_schedule.py @@ -12,7 +12,7 @@ import lxml.html from .types import Event -ttl_hours = 6 +ttl_hours = 12 def make_waste_dir(data_dir: str) -> None: @@ -148,7 +148,7 @@ async def get_bristol_gov_uk_data(uprn: str) -> httpx.Response: _uprn = str(uprn).zfill(12) - async with httpx.AsyncClient(timeout=10) as client: + async with httpx.AsyncClient(timeout=20) as client: # Initialise form payload = {"servicetypeid": "7dce896c-b3ba-ea11-a812-000d3a7f1cdc"} response = await client.get(