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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
nomad-lab
nomad-FAIR
Commits
b20dab40
Commit
b20dab40
authored
Mar 15, 2019
by
Markus Scheidgen
Browse files
Improved proc output for cli command. [skip ci]
parent
f3fff8dd
Pipeline
#45323
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/base.py
View file @
b20dab40
...
...
@@ -301,6 +301,9 @@ class Proc(Document, metaclass=ProcMetaclass):
time
.
sleep
(
interval
)
self
.
reload
()
def
__str__
(
self
):
return
'proc celery_task_id=%s worker_host=%s'
%
(
self
.
celery_task_id
,
self
.
worker_host
)
def
task
(
func
):
"""
...
...
nomad/processing/data.py
View file @
b20dab40
...
...
@@ -291,7 +291,7 @@ class Calc(Proc):
log_data
.
update
(
log_size
=
self
.
upload_files
.
archive_log_file_object
(
self
.
calc_id
).
size
)
def
__str__
(
self
):
return
'calc
proc
calc_id=%s upload_id%s'
%
(
self
.
calc_id
,
self
.
upload_id
)
return
'calc
%s
calc_id=%s upload_id%s'
%
(
super
().
__str__
(),
self
.
calc_id
,
self
.
upload_id
)
class
Upload
(
Proc
):
...
...
@@ -646,4 +646,4 @@ class Upload(Proc):
return
result
def
__str__
(
self
):
return
'upload
proc
upload_id%s'
%
self
.
upload_id
return
'upload
%s
upload_id%s'
%
(
super
().
__str__
(),
self
.
upload_id
)
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