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

Call .stop() on dataloader in test_dataloader_schema #1848

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

oliverholworthy
Copy link
Member

@oliverholworthy oliverholworthy commented Jun 22, 2023

Call .stop() on dataloader in test_dataloader_schema

This fixes an issue with long-running tests in NVTabular in docker environments.

Without this call to stop. The dataloader background thread is still running, because not all the batches have been iterated through.

This causes problems when combined with the pytest coverage extension pytest-cov which seems to cause this thread to not be cleaned up automatically and later tests become very slow due to some resouce contention.

This came up in #1829 which runs the tests on GPU in a different GitHub Actions Runner.

@oliverholworthy oliverholworthy self-assigned this Jun 22, 2023
@github-actions
Copy link

Documentation preview

https://nvidia-merlin.github.io/NVTabular/review/pr-1848

@karlhigley karlhigley merged commit f9a2891 into main Jul 3, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants