Skip to content

Commit

Permalink
Fix itempath for task printer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Jan 15, 2024
1 parent 9d8dacc commit ba6172f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/print_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ def main(

# If we don't want to overwrite, then we should only run tasks that don't already exist
# i.e., they failed in the past or they're missing for some other reason
itempath = DepItemPath(base_product, dataset_id, version, datetime)
itempath = DepItemPath(base_product, dataset_id, version, datetime, zero_pad_numbers=True)
if not overwrite:
valid_tasks = []
for task in tasks:
if not blob_exists(itempath.stac_path(task["region-code"])):
stac_path = itempath.stac_path(task["region-code"])
if not blob_exists(stac_path):
valid_tasks.append(task)
if len(valid_tasks) == limit:
break
Expand Down

0 comments on commit ba6172f

Please sign in to comment.