2018-05-02 21:01:34 +00:00
|
|
|
<td data-test-indicators class="is-narrow">
|
2018-05-11 18:35:48 +00:00
|
|
|
{{#if allocation.unhealthyDrivers.length}}
|
2018-10-17 14:17:24 +00:00
|
|
|
<span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers">
|
2018-05-11 18:35:48 +00:00
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2018-05-02 21:01:34 +00:00
|
|
|
{{#if allocation.nextAllocation}}
|
2018-10-17 14:17:24 +00:00
|
|
|
<span data-test-icon="reschedule" class="tooltip text-center" role="tooltip" aria-label="Allocation was rescheduled">
|
2018-05-02 21:01:34 +00:00
|
|
|
{{x-icon "history" class="is-faded"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2019-04-17 17:47:32 +00:00
|
|
|
{{#if allocation.wasPreempted}}
|
|
|
|
<span data-test-icon="preemption" class="tooltip text-center" role="tooltip" aria-label="Allocation was preempted">
|
|
|
|
{{x-icon "boot" class="is-faded"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2018-05-02 21:01:34 +00:00
|
|
|
</td>
|
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-07-20 00:36:25 +00:00
|
|
|
{{#if (eq context "job")}}
|
2018-07-20 00:24:36 +00:00
|
|
|
<td data-test-task-group>
|
|
|
|
{{#link-to "jobs.job.task-group" allocation.job allocation.taskGroupName (query-params jobNamespace=allocation.job.namespace.id)}}
|
|
|
|
{{allocation.taskGroupName}}
|
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
2019-01-31 06:44:43 +00:00
|
|
|
<td data-test-create-time>{{format-month-ts allocation.createTime}}</td>
|
2019-01-30 17:57:55 +00:00
|
|
|
<td data-test-modify-time>
|
2019-01-31 06:44:43 +00:00
|
|
|
<span class="tooltip" aria-label="{{format-month-ts allocation.modifyTime}}">
|
2019-01-30 17:57:55 +00:00
|
|
|
{{moment-from-now allocation.modifyTime}}
|
|
|
|
</span>
|
|
|
|
</td>
|
2018-03-28 21:51:54 +00:00
|
|
|
<td data-test-client-status class="is-one-line">
|
2017-09-19 14:47:10 +00:00
|
|
|
<span class="color-swatch {{allocation.clientStatus}}" /> {{allocation.clientStatus}}
|
|
|
|
</td>
|
2018-07-20 00:36:25 +00:00
|
|
|
{{#if (or (eq context "taskGroup") (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-07-19 20:31:02 +00:00
|
|
|
<td data-test-job-version class="is-1">{{allocation.jobVersion}}</td>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/if}}
|
2018-07-19 20:31:02 +00:00
|
|
|
<td data-test-cpu class="is-1 has-text-centered">
|
2018-12-10 23:25:48 +00:00
|
|
|
{{#if allocation.isRunning}}
|
|
|
|
{{#if (and (not cpu) fetchStats.isRunning)}}
|
|
|
|
...
|
|
|
|
{{else if statsError}}
|
|
|
|
<span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{cpu.used}} / {{stats.reservedCPU}} MHz">
|
|
|
|
<progress
|
|
|
|
class="progress is-info is-small"
|
|
|
|
value="{{cpu.percent}}"
|
|
|
|
max="1">
|
|
|
|
{{cpu.percent}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-07-19 20:31:02 +00:00
|
|
|
<td data-test-mem class="is-1 has-text-centered">
|
2018-12-10 23:25:48 +00:00
|
|
|
{{#if allocation.isRunning}}
|
|
|
|
{{#if (and (not memory) fetchStats.isRunning)}}
|
|
|
|
...
|
|
|
|
{{else if statsError}}
|
|
|
|
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes memory.used}} / {{stats.reservedMemory}} MiB">
|
|
|
|
<progress
|
|
|
|
class="progress is-danger is-small"
|
|
|
|
value="{{memory.percent}}"
|
|
|
|
max="1">
|
|
|
|
{{memory.percent}}
|
|
|
|
</progress>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|