fix #258 task_executor occupy cpu too much (#288)

### What problem does this PR solve?

Issue link:#285

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
KevinHuSh
2024-04-10 10:11:22 +08:00
committed by GitHub
parent 28d29949c6
commit 923cbe488e
3 changed files with 22 additions and 19 deletions

View File

@ -58,7 +58,7 @@ class HuMinio(object):
def get(self, bucket, fnm):
for _ in range(10):
for _ in range(1):
try:
r = self.conn.get_object(bucket, fnm)
return r.read()