From 8459bd6cbbf6bb58f3671fe90f82ef23e4408c72 Mon Sep 17 00:00:00 2001 From: Ian Grant <ian.conway.grant@gmail.com> Date: Wed, 14 May 2025 21:12:46 -0400 Subject: [PATCH] fix: update redo tag validation and key prefix to use redo_of field --- maap_utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maap_utils/utils.py b/maap_utils/utils.py index 9690fbe..8a88955 100644 --- a/maap_utils/utils.py +++ b/maap_utils/utils.py @@ -27,7 +27,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]: Bucket="maap-ops-workspace", Prefix=( f"{config.username}/dps_output/{config.algo_id}/" - f"{config.algo_version}/{config.redo_tag}/" + f"{config.algo_version}/{config.redo_of}/" ), ): for obj in page.get("Contents", []): @@ -41,7 +41,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]: def validate_redo_tag(config: RunConfig) -> None: """Validate redo tag parameters and check for existing outputs""" - if not config.force_redo and config.redo_tag == config.tag: + if not config.force_redo and config.redo_of == config.tag: raise ValueError( f"Cannot redo with same tag '{config.tag}' " "- use --force-redo to override" -- GitLab