Public-Health-Scotland / phsopendata

Functions to extract and interact with data from the Scottish Health and Social Care Open Data platform.
https://public-health-scotland.github.io/phsopendata/
9 stars 3 forks source link

Use RETRY instead of GET #45

Closed Moohan closed 4 days ago

Moohan commented 5 days ago

This should mean that any failed requests will be retried up to 3 times on a failure. The function will wait a random amount of time, progressively longer on each retry, so as not to overwhelm the server.

It should clear up the intermittent errors we get.

Possibly we want to use quiet = TRUE - at the moment it will print a message when it has to retry informing how long it will wait before trying again.