Skip to content

Fix resource leak for KaggleWebServiceClient missing a close call. - #20

Open
sngraam wants to merge 1 commit into
NVIDIA:mainfrom
sngraam:nvidia-kaggle-client-fix
Open

Fix resource leak for KaggleWebServiceClient missing a close call.#20
sngraam wants to merge 1 commit into
NVIDIA:mainfrom
sngraam:nvidia-kaggle-client-fix

Conversation

@sngraam

@sngraam sngraam commented Jul 5, 2026

Copy link
Copy Markdown

[fetch_leaderboard_writeups.py, fetch_writeup.py]

What changed:
- wrapped kaggle_web_service() call in a with context manager block.
- moved _resolve_topic_id execution within the same context block.

[archive.py]

within try...finally blocks. code now dynamically monitors if a local client was created inside the function (is_local_client = client is None) and ensures that client.close()

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