Skip to content

[bugfix] Release task resources#129

Draft
wenpengw-nv wants to merge 2 commits intotaco-project:mainfrom
wenpengw-nv:wenpengw/cleanup_task
Draft

[bugfix] Release task resources#129
wenpengw-nv wants to merge 2 commits intotaco-project:mainfrom
wenpengw-nv:wenpengw/cleanup_task

Conversation

@wenpengw-nv
Copy link
Copy Markdown
Contributor

FlexKV's ·KVTaskManager.tasks· (ExpiringDict, TTL=30min) retains completed KVTask objects long after they are consumed. Each KVTask holds ~16 Python objects. This causes python GC pause time to grow.

This PR fix: pop tasks from ExpiringDict when consumed (_wait_impl) or cancelled (_cancel_task)

@wenpengw-nv wenpengw-nv reopened this Mar 24, 2026
@wenpengw-nv wenpengw-nv marked this pull request as draft March 24, 2026 10:01
Co-authored-by: zhuofan1123 <zhuofanl@nvidia.com>
@wenpengw-nv wenpengw-nv force-pushed the wenpengw/cleanup_task branch from aa6bbec to d2b8620 Compare March 25, 2026 05:22
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.

1 participant