-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HF_HUB_KEEP_LOCK_FILES to prevent rare concurrency issue
The lock file could be removed when the 2nd process gets the lock. And then the 3rd process will lock on a different lock file handle. Although the lock path stays the same. 1st proc gets the lock 2nd proc waits for the lock 1st proc releases the lock 1st proc removes the lock file 2nd proc gets the lock 3rd proc creates a new lock file and gets the lock Add ENV 'HF_HUB_KEEP_LOCK_FILES' to give user option to keep the lock files to prevent concurrency issues.
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters