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
080ceb70
Commit
080ceb70
authored
Aug 07, 2019
by
Markus Scheidgen
Browse files
Only pull mirror data for new uploads. [skip ci]
parent
4c45f78c
Pipeline
#53369
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/cli/client/mirror.py
View file @
080ceb70
...
...
@@ -109,9 +109,6 @@ def mirror(
upload_id
=
upload_data
.
upload_id
if
not
files_only
:
upload_data
=
client
.
mirror
.
get_upload_mirror
(
upload_id
=
upload_id
).
response
().
result
n_calcs
=
len
(
upload_data
.
calcs
)
try
:
upload
=
proc
.
Upload
.
get
(
upload_id
)
if
__in_test
:
...
...
@@ -127,6 +124,9 @@ def mirror(
continue
except
KeyError
:
pass
upload_data
=
client
.
mirror
.
get_upload_mirror
(
upload_id
=
upload_id
).
response
().
result
n_calcs
=
len
(
upload_data
.
calcs
)
else
:
n_calcs
=
0
...
...
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