Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ni-meister-gedi-biomass-global
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian
ni-meister-gedi-biomass-global
Commits
8459bd6c
Commit
8459bd6c
authored
2 months ago
by
Ian
Browse files
Options
Downloads
Patches
Plain Diff
fix: update redo tag validation and key prefix to use redo_of field
parent
4bc30b7e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maap_utils/utils.py
+2
-2
2 additions, 2 deletions
maap_utils/utils.py
with
2 additions
and
2 deletions
maap_utils/utils.py
+
2
−
2
View file @
8459bd6c
...
@@ -27,7 +27,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]:
...
@@ -27,7 +27,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]:
Bucket
=
"
maap-ops-workspace
"
,
Bucket
=
"
maap-ops-workspace
"
,
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
}
/
"
),
),
):
):
for
obj
in
page
.
get
(
"
Contents
"
,
[]):
for
obj
in
page
.
get
(
"
Contents
"
,
[]):
...
@@ -41,7 +41,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]:
...
@@ -41,7 +41,7 @@ def get_existing_keys(config: RunConfig) -> Set[str]:
def
validate_redo_tag
(
config
:
RunConfig
)
->
None
:
def
validate_redo_tag
(
config
:
RunConfig
)
->
None
:
"""
Validate redo tag parameters and check for existing outputs
"""
"""
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
(
raise
ValueError
(
f
"
Cannot redo with same tag
'
{
config
.
tag
}
'
"
f
"
Cannot redo with same tag
'
{
config
.
tag
}
'
"
"
- use --force-redo to override
"
"
- use --force-redo to override
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment