Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
1e63505b
Commit
1e63505b
authored
Jul 24, 2019
by
Markus Scheidgen
Browse files
Fixed issue with unaquired lock in re-process cli command.
parent
91ceb8e3
Pipeline
#52392
passed with stages
in 17 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/cli/admin/uploads.py
View file @
1e63505b
...
...
@@ -175,11 +175,12 @@ def re_process(ctx, uploads, parallel: int):
upload
.
block_until_complete
(
interval
=
.
1
)
logger
.
info
(
're-processing complete'
,
upload_id
=
upload
.
upload_id
)
state
[
'completed_count'
]
+=
1
print
(
' re-processed %s of %s uploads'
%
(
state
[
'completed_count'
],
uploads_count
))
state
[
'available_threads_count'
]
+=
1
cv
.
notify
()
with
cv
:
state
[
'completed_count'
]
+=
1
print
(
' re-processed %s of %s uploads'
%
(
state
[
'completed_count'
],
uploads_count
))
state
[
'available_threads_count'
]
+=
1
cv
.
notify
()
for
upload
in
uploads
:
with
cv
:
...
...
Write
Preview
Supports
Markdown
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