Skip to content
Snippets Groups Projects
Commit 2e9b27df authored by Ian's avatar Ian
Browse files

fix: use redo_of instead of redo_tag in validate_redo_tag

parent 8459bd6c
No related branches found
No related tags found
No related merge requests found
...@@ -50,14 +50,14 @@ def validate_redo_tag(config: RunConfig) -> None: ...@@ -50,14 +50,14 @@ def validate_redo_tag(config: RunConfig) -> None:
s3 = boto3.client("s3") s3 = boto3.client("s3")
prefix = ( prefix = (
f"{config.username}/dps_output/{config.algo_id}/" f"{config.username}/dps_output/{config.algo_id}/"
f"{config.algo_version}/{config.redo_tag}/" f"{config.algo_version}/{config.redo_of}/"
) )
result = s3.list_objects_v2( result = s3.list_objects_v2(
Bucket="maap-ops-workspace", Prefix=prefix, MaxKeys=1 Bucket="maap-ops-workspace", Prefix=prefix, MaxKeys=1
) )
if not result.get("KeyCount"): if not result.get("KeyCount"):
raise ValueError( raise ValueError(
"No output directory found for " f"redo tag '{config.redo_tag}'" "No output directory found for " f"redo tag '{config.redo_of}'"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment