From 2559b3dce714f3084d1fe1246f81a0e6cbf9383f Mon Sep 17 00:00:00 2001 From: Darius Couchard Date: Mon, 27 May 2024 14:35:55 +0200 Subject: [PATCH] Using the sample_id for items ID in the stac metadata --- scripts/extractions/extract_optical.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/extractions/extract_optical.py b/scripts/extractions/extract_optical.py index 7651a7a4..7fc952f2 100644 --- a/scripts/extractions/extract_optical.py +++ b/scripts/extractions/extract_optical.py @@ -245,6 +245,7 @@ def create_datacube_optical( title=f"GFMAP_Extraction_S2_{s2_tile}_{valid_time}", sample_by_feature=True, job_options=job_options, + feature_id_property="sample_id", ) @@ -328,6 +329,11 @@ def post_job_action( default="1900m", help="Memory overhead to allocate for the executor.", ) + parser.add_argument( + "--restart_failed", + action="store_true", + help="Restart the jobs that previously failed.", + ) args = parser.parse_args() @@ -368,6 +374,7 @@ def post_job_action( poll_sleep=60, n_threads=2, post_job_params={}, + restart_failed=args.restart_failed, ) manager.add_backend(Backend.CDSE.value, cdse_connection, parallel_jobs=6)