2020-05-04 19:25:49 +00:00
|
|
|
{{#if allocation}}
|
|
|
|
<td data-test-indicators class="is-narrow">
|
|
|
|
{{#if allocation.unhealthyDrivers.length}}
|
|
|
|
<span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers">
|
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#if allocation.nextAllocation}}
|
|
|
|
<span data-test-icon="reschedule" class="tooltip text-center" role="tooltip" aria-label="Allocation was rescheduled">
|
|
|
|
{{x-icon "history" class="is-faded"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{#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}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td data-test-short-id>
|
2020-06-01 19:03:56 +00:00
|
|
|
<LinkTo @route="allocations.allocation" @model={{allocation}} class="is-primary">
|
2020-05-04 19:25:49 +00:00
|
|
|
{{allocation.shortId}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2020-05-04 19:25:49 +00:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td data-test-create-time>
|
|
|
|
<span class="tooltip" aria-label="{{format-month-ts allocation.createTime}}">
|
|
|
|
{{format-month-ts allocation.createTime short=true}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td data-test-modify-time>
|
|
|
|
<span class="tooltip" aria-label="{{format-month-ts allocation.modifyTime}}">
|
|
|
|
{{moment-from-now allocation.modifyTime}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
|
2020-05-05 21:26:59 +00:00
|
|
|
<td data-test-health>
|
|
|
|
<span class="nowrap">
|
|
|
|
{{x-icon
|
|
|
|
(if pluginAllocation.healthy "check-circle-outline" "minus-circle-outline")
|
|
|
|
class=(if pluginAllocation.healthy "is-success" "is-danger")}}
|
|
|
|
{{if pluginAllocation.healthy "Healthy" "Unhealthy"}}
|
|
|
|
</span>
|
2020-05-04 22:27:27 +00:00
|
|
|
</td>
|
2020-05-04 19:25:49 +00:00
|
|
|
|
2020-06-01 19:03:56 +00:00
|
|
|
<td data-test-client><LinkTo @route="clients.client" @model={{allocation.node}}>{{allocation.node.shortId}}</LinkTo></td>
|
2020-05-04 19:25:49 +00:00
|
|
|
<td>
|
|
|
|
{{#if (or allocation.job.isPending allocation.job.isReloading)}}
|
|
|
|
...
|
|
|
|
{{else}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<LinkTo @route="jobs.job" @model={{allocation.job}} @query={{hash jobNamespace=allocation.job.namespace.id}} data-test-job>{{allocation.job.name}}</LinkTo>
|
2020-05-04 19:25:49 +00:00
|
|
|
<span class="is-faded" data-test-task-group>/ {{allocation.taskGroup.name}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td data-test-job-version class="is-1">{{allocation.jobVersion}}</td>
|
|
|
|
<td data-test-volume>{{if allocation.taskGroup.volumes.length "Yes"}}</td>
|
|
|
|
|
|
|
|
<td data-test-cpu class="is-1 has-text-centered">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AllocationStat
|
|
|
|
@metric="cpu"
|
|
|
|
@allocation={{allocation}}
|
|
|
|
@statsTracker={{stats}}
|
|
|
|
@isLoading={{fetchStats.isRunning}}
|
|
|
|
@error={{statsError}} />
|
2020-05-04 19:25:49 +00:00
|
|
|
</td>
|
|
|
|
<td data-test-mem class="is-1 has-text-centered">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AllocationStat
|
|
|
|
@metric="memory"
|
|
|
|
@allocation={{allocation}}
|
|
|
|
@statsTracker={{stats}}
|
|
|
|
@isLoading={{fetchStats.isRunning}}
|
|
|
|
@error={{statsError}} />
|
2020-05-04 19:25:49 +00:00
|
|
|
</td>
|
|
|
|
{{else}}
|
|
|
|
<td colspan="10">…</td>
|
|
|
|
{{/if}}
|