Fix get_unacked_iterator (#6280)

### What problem does this PR solve?

Fix get_unacked_iterator. Close #6132 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2025-03-19 17:46:58 +08:00
committed by GitHub
parent 9cad60fa6d
commit bb869aca33
2 changed files with 14 additions and 9 deletions

View File

@ -592,6 +592,7 @@ async def handle_task():
global DONE_TASKS, FAILED_TASKS
redis_msg, task = await collect()
if not task:
await trio.sleep(5)
return
try:
logging.info(f"handle_task begin for task {json.dumps(task)}")