eblondel / ows4R

R Interface for OGC Web-Services (OWS)
https://eblondel.github.io/ows4R/
Other
37 stars 8 forks source link

Is retry implemented? #60

Closed maelle closed 2 years ago

maelle commented 2 years ago

I searched for retry via GitHub but found nothing. Is it possible to use RETRY rather than e.g. GET? Wondering about this as the web service I'm using right now seems flaky. :sweat_smile: Thank you for your patience!

cc @annakrystalli

eblondel commented 2 years ago

I'm not sure what you mean by implementing a RETRY here; If a web-service is down, there is nothing that ows4R can do... Retrying attempts to connect may be done, but that can be managed in user's code outside ows4R. what do you think?

maelle commented 2 years ago

I mean that maybe instead of GET/POST some methods could use https://httr.r-lib.org/reference/RETRY.html (btw see the interface for this in httr2 https://httr2.r-lib.org/reference/req_retry.html), letting the users pass the arguments pause_cap etc?

eblondel commented 2 years ago

It's not implemented, not sure if/when it will be implemented, but I will have a look.