Skip to content

Commit

Permalink
Merge branch 'zarr-checksum-optimization' of github.com:dandi/dandi-a…
Browse files Browse the repository at this point in the history
…rchive into zarr-checksum-optimization
  • Loading branch information
jjnesbitt committed Dec 8, 2022
2 parents b275fdd + 34a81b5 commit 52a8061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dandiapi/zarr/checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def queue_directory_update(self, key: Path, checksum: ZarrChecksum):
def queue_removal(self, key: Path, path: Path | str):
self._get_path(key).paths_to_remove.append(str(path))

def pop_deepest(self):
def pop_deepest(self) -> ZarrChecksumModification:
"""Find the deepest path in the queue, and return it and its children to be updated."""
_, modification = heapq.heappop(self._heap)
del self._path_map[modification.path]
Expand Down
2 changes: 1 addition & 1 deletion dandiapi/zarr/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def ingest_zarr_archive(
# Instantiate updater and add files as they come in
empty = True
queue = ZarrChecksumModificationQueue()
print(f'Fetching files for zarr {zarr.zarr_id}...')
logger.info(f'Fetching files for zarr {zarr.zarr_id}...')
for files in yield_files(bucket=zarr.storage.bucket_name, prefix=zarr.s3_path('')):
if len(files):
empty = False
Expand Down

0 comments on commit 52a8061

Please sign in to comment.