Skip to content

Conversation

@lhoestq
Copy link
Member

@lhoestq lhoestq commented Oct 25, 2022

fsspec added a clean way of resetting its lock - instead of doing it manually

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 25, 2022

The documentation is not available anymore as the PR was closed or merged.

else:
fsspec.asyn.iothread[0] = None
fsspec.asyn.loop[0] = None
fsspec.asyn.lock = threading.Lock()
Copy link
Member Author

Choose a reason for hiding this comment

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

previously, we were not resetting the lock correctly apparently - I added this line anyway

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

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

Good catch! Thank you!!!

@lhoestq lhoestq merged commit 9eebd98 into main Nov 3, 2022
@lhoestq lhoestq deleted the fsspec-lock-reset branch November 3, 2022 20:48
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.

4 participants