Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
05534f37
Unverified
Commit
05534f37
authored
Dec 18, 2020
by
J-shang
Committed by
GitHub
Dec 18, 2020
Browse files
fix lock bug (#3207)
parent
468917ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/tools/nnictl/common_utils.py
nni/tools/nnictl/common_utils.py
+1
-1
No files found.
nni/tools/nnictl/common_utils.py
View file @
05534f37
...
...
@@ -130,4 +130,4 @@ class SimplePreemptiveLock(filelock.SoftFileLock):
return
None
def
get_file_lock
(
path
:
string
,
stale
=-
1
):
return
SimplePreemptiveLock
(
path
+
'.lock'
,
stale
=
-
1
)
return
SimplePreemptiveLock
(
path
+
'.lock'
,
stale
=
stale
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment