Skip to content
GitLab
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
06c9239a
Commit
06c9239a
authored
May 19, 2020
by
Markus Scheidgen
Browse files
Prevent cursor timeouts on re-indexing uploads.
parent
70d29dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/data.py
View file @
06c9239a
...
@@ -1203,9 +1203,10 @@ class Upload(Proc):
...
@@ -1203,9 +1203,10 @@ class Upload(Proc):
return
entry_metadata
return
entry_metadata
try
:
try
:
# read all calc objects first to avoid missing curser errors
yield
[
yield
[
get_metadata
(
calc
)
get_metadata
(
calc
)
for
calc
in
Calc
.
objects
(
upload_id
=
self
.
upload_id
)]
for
calc
in
list
(
Calc
.
objects
(
upload_id
=
self
.
upload_id
)
)
]
finally
:
finally
:
upload_files
.
close
()
upload_files
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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