2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-short-id>
|
2017-10-20 05:30:10 +00:00
|
|
|
{{#link-to "allocations.allocation" allocation class="is-primary"}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{allocation.shortId}}
|
2017-10-20 05:30:10 +00:00
|
|
|
{{/link-to}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-modify-time>{{moment-format allocation.modifyTime "MM/DD HH:mm:ss"}}</td>
|
|
|
|
<td data-test-name>{{allocation.name}}</td>
|
|
|
|
<td data-test-client-status>
|
2017-09-19 14:47:10 +00:00
|
|
|
<span class="color-swatch {{allocation.clientStatus}}" /> {{allocation.clientStatus}}
|
|
|
|
</td>
|
|
|
|
{{#if (eq context "job")}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-job-version>{{allocation.jobVersion}}</td>
|
|
|
|
<td data-test-client>{{#link-to "clients.client" allocation.node}}{{allocation.node.shortId}}{{/link-to}}</td>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{else if (eq context "node")}}
|
|
|
|
<td>
|
2017-10-04 00:18:33 +00:00
|
|
|
{{#if (or allocation.job.isPending allocation.job.isReloading)}}
|
|
|
|
...
|
|
|
|
{{else}}
|
2018-01-05 20:59:36 +00:00
|
|
|
{{#link-to "jobs.job" allocation.job (query-params jobNamespace=allocation.job.namespace.id) data-test-job}}{{allocation.job.name}}{{/link-to}}
|
|
|
|
<span class="is-faded" data-test-task-group>/ {{allocation.taskGroup.name}}</span>
|
2017-10-04 00:18:33 +00:00
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-job-version>{{allocation.jobVersion}}</td>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/if}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-cpu class="has-text-centered">
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#if allocation.stats.isPending}}
|
|
|
|
...
|
|
|
|
{{else if allocation.stats.isRejected}}
|
2017-10-03 17:57:26 +00:00
|
|
|
<span class="tooltip text-center" aria-label="Couldn't connect to client">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{else}}
|
2017-10-17 01:47:25 +00:00
|
|
|
<div class="inline-chart tooltip" aria-label="{{allocation.cpuUsed}} / {{allocation.taskGroup.reservedCPU}} MHz">
|
2017-09-19 14:47:10 +00:00
|
|
|
<progress
|
|
|
|
class="progress is-info is-small"
|
|
|
|
value="{{allocation.percentCPU}}"
|
|
|
|
max="1">
|
|
|
|
{{allocation.percentCPU}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-mem class="has-text-centered">
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#if allocation.stats.isPending}}
|
|
|
|
...
|
|
|
|
{{else if allocation.stats.isRejected}}
|
2017-10-03 17:57:26 +00:00
|
|
|
<span class="tooltip text-center" aria-label="Couldn't connect to client">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{else}}
|
2017-10-17 01:47:25 +00:00
|
|
|
<div class="inline-chart tooltip" aria-label="{{format-bytes allocation.memoryUsed}} / {{allocation.taskGroup.reservedMemory}} MiB">
|
2017-09-19 14:47:10 +00:00
|
|
|
<progress
|
|
|
|
class="progress is-danger is-small"
|
|
|
|
value="{{allocation.percentMemory}}"
|
|
|
|
max="1">
|
|
|
|
{{allocation.percentMemory}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|