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

GH-2169 - Close log_handler after training is complete. #2170

Merged
merged 1 commit into from Apr 7, 2021

Conversation

parakalan
Copy link

@parakalan parakalan commented Mar 19, 2021

This PR fixes #2169 .
We are removing the log_handler here but not closing the handler leading to ResourceWarning: unclosed file <_io.BufferedReader name='training.log. Hence we are not able to programatically access the training.log (For ex - Unable to upload the file to s3 using botocore)

@alanakbik
Copy link
Collaborator

@parakalan thanks for fixing this! I'm not sure how to test this, but it makes sense to close the handler first.

@alanakbik alanakbik merged commit b379709 into flairNLP:master Apr 7, 2021
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.

Close log_handler after training is complete.
2 participants