Skip to content

Commit 2ad7fbf

Browse files
Apply suggestions from code review
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
1 parent e2ebfa1 commit 2ad7fbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/job-orchestration/job_orchestration/executor/compress/compression_task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ def update_job_metadata_and_tags(db_cursor, job_id, table_prefix, tag_ids, archi
9393

9494
def update_archive_metadata(db_cursor, table_prefix, archive_stats):
9595
default_creation_stats = {
96+
# Use defaults for values clp-s doesn't output
9697
"creation_ix": 0,
9798
"creator_id": "",
9899
}
100+
101+
# Validate clp-s doesn't output the set kv-pairs
99102
for key, default_value in default_creation_stats.items():
100103
if key in archive_stats:
101104
raise ValueError(f"Unexpected key '{key}' in archive stats")

0 commit comments

Comments
 (0)