Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
lava
lava
Commits
c0542e16
Commit
c0542e16
authored
Dec 16, 2020
by
Sjoerd Simons
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'T11957-workarounds' into 'collabora/production'
T11957 workarounds See merge request
!9
parents
c653eced
ce0a353f
Pipeline
#20039
passed with stages
in 1 minute and 19 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lava_scheduler_app/api/__init__.py
lava_scheduler_app/api/__init__.py
+7
-2
lava_scheduler_app/tables.py
lava_scheduler_app/tables.py
+2
-0
No files found.
lava_scheduler_app/api/__init__.py
View file @
c0542e16
...
...
@@ -310,15 +310,20 @@ class SchedulerAPI(ExposedV2API):
health
=
Device
.
HEALTH_RETIRED
)
devices_jobs
=
((
dev
,
dev
.
current_job
()
if
dev
.
state
==
Device
.
STATE_RUNNING
else
None
)
for
dev
in
devices_list
)
return
[
[
dev
.
hostname
,
dev
.
device_type
.
name
,
build_device_status_display
(
dev
.
state
,
dev
.
health
),
dev
.
current_
job
()
.
pk
if
dev
.
current_
job
()
else
None
,
job
.
pk
if
job
else
None
,
True
,
]
for
dev
in
devices_
list
for
dev
,
job
in
devices_
jobs
]
def
all_device_types
(
self
):
...
...
lava_scheduler_app/tables.py
View file @
c0542e16
...
...
@@ -85,6 +85,8 @@ class ExpandedStatusColumn(tables.Column):
"""
if
record
.
state
==
Device
.
STATE_RUNNING
:
current_job
=
record
.
current_job
()
if
not
current_job
:
return
mark_safe
(
"(no current job)"
)
return
mark_safe
(
# nosec - internal data
"Running job #%s - %s submitted by %s"
%
(
pklink
(
current_job
),
current_job
.
description
,
current_job
.
submitter
)
...
...
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