Skip to content

fix: replace blocking sleep with async sleep and fix file handle leak#1200

Merged
zhuzilin merged 1 commit intoTHUDM:mainfrom
lancerts:fix41
Jan 4, 2026
Merged

fix: replace blocking sleep with async sleep and fix file handle leak#1200
zhuzilin merged 1 commit intoTHUDM:mainfrom
lancerts:fix41

Conversation

@lancerts
Copy link
Copy Markdown
Contributor

Summary

  • Async sleep fix (radix_tree_middleware.py): Replaced blocking time.sleep(30) with await asyncio.sleep(30) in the async dispatch method to prevent blocking the event loop.
  • File handle leak fix (ray/rollout.py): Removed unnecessary open() call and pass path directly to torch.load(), which handles file I/O internally.

@lancerts
Copy link
Copy Markdown
Contributor Author

@yitianlian ty

@zhuzilin zhuzilin merged commit a71a832 into THUDM:main Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants