Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

STAC requests resilience #818

Open bossie opened 3 days ago

bossie commented 3 days ago

Related:

https://github.com/Open-EO/openeo-geopyspark-driver/blob/39fd7d1b7088e2f6f3fe6a300f045075e6c10541/openeogeotrellis/load_stac.py#L572

Passing pystac-client's StacApiIO looked like an easy fix but this does not work: https://github.com/stac-utils/pystac-client/issues/706.

There is pystac.stac_io.RetryStacIO that allow for retries but does not support setting a timeout.

In both cases the underlying HTTP library changes (to requests and urllib3 respectively) so unit tests that depend on UrllibMocker will have to be adapted.