fix: fallback S3 sur toute erreur S2 (pas seulement cloud coverage)
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user