Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing docstrings, add thread names to help in debugging, add a missing stop check #1465

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

divyanshk
Copy link
Contributor

Title says it all ¯_(ツ)_/¯

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 19, 2025
Copy link

pytorch-bot bot commented Mar 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/data/1465

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 1 Pending

As of commit 7bd2e53 with merge base 311f69d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@divyanshk divyanshk changed the title Fixing docstrings, add thread names to will help in debugging, add a missing stop check Fixing docstrings, add thread names to help in debugging, add a missing stop check Mar 19, 2025
@divyanshk divyanshk marked this pull request as ready for review March 19, 2025 22:23
@@ -231,10 +238,10 @@ def __iter__(self) -> Iterator[T]:

def __next__(self) -> T:
while True:
if self._stop.is_set():
if self._stop.is_set() or self._mp_stop.is_set():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Contributor

@ramanishsingh ramanishsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for adding more info to the threads for easier debugging.

@divyanshk divyanshk merged commit b54da34 into main Mar 19, 2025
36 checks passed
@divyanshk divyanshk deleted the divyanshk/easy_map_refactor branch March 19, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants