Skip to content

Commit

Permalink
Listkeys (#336)
Browse files Browse the repository at this point in the history
* allow other tasks to run fileClient.listKeys

* avoid blocking and list_keys

* added handlers for timeout error

* fix flake8 errors

* fix modulo check

* fix for modulo
  • Loading branch information
jreadey authored Apr 1, 2024
1 parent 712ff40 commit 8ae5bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/util/fileClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ async def list_keys(
files.append(filepath)
if limit and len(files) >= limit:
break
if len(files) % 1000:
if len(files) % 1000 == 0:
await asyncio.sleep(0)

# use a dictionary to hold return values if stats are needed
Expand Down

0 comments on commit 8ae5bff

Please sign in to comment.