Increase TTL and timeout for waste schedule
This commit is contained in:
		
							parent
							
								
									efbbf3e350
								
							
						
					
					
						commit
						13a959711d
					
				| 
						 | 
					@ -12,7 +12,7 @@ import lxml.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .types import Event
 | 
					from .types import Event
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ttl_hours = 6
 | 
					ttl_hours = 12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def make_waste_dir(data_dir: str) -> None:
 | 
					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)
 | 
					    _uprn = str(uprn).zfill(12)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async with httpx.AsyncClient(timeout=10) as client:
 | 
					    async with httpx.AsyncClient(timeout=20) as client:
 | 
				
			||||||
        # Initialise form
 | 
					        # Initialise form
 | 
				
			||||||
        payload = {"servicetypeid": "7dce896c-b3ba-ea11-a812-000d3a7f1cdc"}
 | 
					        payload = {"servicetypeid": "7dce896c-b3ba-ea11-a812-000d3a7f1cdc"}
 | 
				
			||||||
        response = await client.get(
 | 
					        response = await client.get(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue