Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simone Rossi
main
Commits
e73f2d81
Commit
e73f2d81
authored
Oct 29, 2018
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the status page with termination queue information
parent
ddafaa9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
zoe_api/web/status.py
zoe_api/web/status.py
+2
-0
zoe_api/web/templates/status.jinja2
zoe_api/web/templates/status.jinja2
+36
-1
No files found.
zoe_api/web/status.py
View file @
e73f2d81
...
...
@@ -36,6 +36,8 @@ class StatusEndpointWeb(ZoeWebRequestHandler):
executions_in_queue
[
exec_id
]
=
self
.
api_endpoint
.
execution_by_id
(
None
,
exec_id
)
for
exec_id
in
stats
[
'running_queue'
]:
executions_in_queue
[
exec_id
]
=
self
.
api_endpoint
.
execution_by_id
(
None
,
exec_id
)
for
exec_id
in
stats
[
'termination_queue'
]:
executions_in_queue
[
exec_id
]
=
self
.
api_endpoint
.
execution_by_id
(
None
,
exec_id
)
services_per_node
=
{}
for
node
in
stats
[
'platform_stats'
][
'nodes'
]:
...
...
zoe_api/web/templates/status.jinja2
View file @
e73f2d81
...
...
@@ -29,7 +29,7 @@
<ul>
<li>Queue length: <span id="sched_queue_len">{{ stats.queue_length }}</span></li>
<li>Running queue length: <span id="sched_running_queue_len">{{ stats.running_length }}</span></li>
<li>
On-going clean-up threads: <span id="termination_threads_count">{{ stats.termination_threads_count
}}</span></li>
<li>
Clean-up queue length: <span id="termination_threads_count">{{ stats.termination_queue_length
}}</span></li>
</ul>
<h4>Queue</h4>
...
...
@@ -106,6 +106,41 @@
{% endif %}
</div>
<h4>Clean-up queue</h4>
<p>This queue contains executions that are waiting to be cleaned-up.</p>
<div class="scheduler_queue">
{% for id in stats['termination_queue'] %}
<div class="queue_item" id="{{ id }}">
{% if user.role.can_operate_others %}
<a href="{{ reverse_url('execution_inspect', id) }}">{{ id }}</a> ({{ executions_in_queue[id].owner.username }})
{% else %}
{{ id }} ({{ executions_in_queue[id].owner.username }})
{% endif %}
{% for service in executions_in_queue[id].services %}
{% if service.essential %}
<div class="service essential {{ 'running' if service.status == service.ACTIVE_STATUS }}">
{{ service['name'] }}<br/>
M: <script>format_bytes({{ service['resource_reservation']['memory']['min'] }});</script><br/>
C: {{ service['resource_reservation']['cores']['min'] }}
</div>
{% endif %}
{% endfor %}
{% for service in executions_in_queue[id].services %}
{% if not service.essential %}
<div class="service {{ 'running' if service.status == service.ACTIVE_STATUS }}">
{{ service['name'] }}<br/>
M: <script>format_bytes({{ service['resource_reservation']['memory']['min'] }});</script><br/>
C: {{ service['resource_reservation']['cores']['min'] }}
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}
{% if stats['running_queue']|length == 0 %}
<p>The running queue is empty.</p>
{% endif %}
</div>
<h3 class="section"><a name="platform">Platform</a></h3>
<ul>
<li>Total containers: {{ stats.platform_stats.container_count }}</li>
...
...
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