fix: fallback S3 sur toute erreur S2 (pas seulement cloud coverage)

This commit is contained in:
Gwadaking
2026-04-09 00:21:29 -04:00
parent 354ccef917
commit 3c2d174edb

View File

@@ -39,6 +39,13 @@ class IngestionService
} catch (HighCloudCoverageException $e) { } catch (HighCloudCoverageException $e) {
$this->logger->info('S2 cloud too high, falling back to Sentinel-3', ['reason' => $e->getMessage()]); $this->logger->info('S2 cloud too high, falling back to Sentinel-3', ['reason' => $e->getMessage()]);
$this->ingest($bbox, $date, 'Sentinel-3', 'sentinel-3-olci'); $this->ingest($bbox, $date, 'Sentinel-3', 'sentinel-3-olci');
} catch (\Throwable $e) {
// Erreur S2 non liée à la couverture nuageuse (HTTP 4xx/5xx, timeout…)
// → tenter S3 plutôt que perdre tout le cycle pour cette zone
$this->logger->warning('S2 ingestion error, falling back to Sentinel-3', [
'reason' => $e->getMessage(),
]);
$this->ingest($bbox, $date, 'Sentinel-3', 'sentinel-3-olci');
} }
} }