Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix file lock bug #3207

Merged
merged 1 commit into from
Dec 18, 2020
Merged

fix file lock bug #3207

merged 1 commit into from
Dec 18, 2020

Conversation

J-shang
Copy link
Contributor

@J-shang J-shang commented Dec 17, 2020

No description provided.

@@ -130,4 +130,4 @@ def _release(self):
return None

def get_file_lock(path: string, stale=-1):
return SimplePreemptiveLock(path + '.lock', stale=-1)
return SimplePreemptiveLock(path + '.lock', stale=stale)
Copy link
Contributor

Choose a reason for hiding this comment

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

have you checked that if you manually create a lock file, does it block new experiment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it does not block new experiment. The previous situation was due to always stale=-1, means lock never expires, now fix it.

@QuanluZhang QuanluZhang merged commit 05534f3 into microsoft:master Dec 18, 2020
@J-shang J-shang deleted the fix-lock branch December 18, 2020 01:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants