Skip to content

regmem/wales: time out senedd.wales requests so the scraper doesn't hang - #272

Closed
c-tonneslan wants to merge 1 commit into
mysociety:masterfrom
c-tonneslan:fix/senedd-regmem-timeouts
Closed

regmem/wales: time out senedd.wales requests so the scraper doesn't hang#272
c-tonneslan wants to merge 1 commit into
mysociety:masterfrom
c-tonneslan:fix/senedd-regmem-timeouts

Conversation

@c-tonneslan

Copy link
Copy Markdown

Closes #258.

requests.get without a timeout will block indefinitely when the server hangs the TCP connection, which is the periodic failure mode the issue describes. A 60s timeout per call means the scheduled job either succeeds, retries (where the retry loop exists), or fails loudly enough that monitoring picks it up.

Closes mysociety#258.

requests.get without a timeout will block indefinitely when the
server hangs the TCP connection, which is the periodic failure mode
the issue describes. Add a 60s timeout to each call so the scheduled
job either succeeds, retries (where the retry loop exists), or fails
loud enough that monitoring picks it up.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
@dracos

dracos commented Jul 2, 2026

Copy link
Copy Markdown
Member

Dupe of #259

@dracos dracos closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Senedd regmem download hangs

2 participants