2018-05-02 21:01:34 +00:00
|
|
|
<td data-test-indicators class="is-narrow">
|
2022-01-24 15:58:28 +00:00
|
|
|
{{#if this.allocation.unhealthyDrivers.length}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<span
|
|
|
|
data-test-icon="unhealthy-driver"
|
|
|
|
class="tooltip text-center"
|
|
|
|
role="tooltip"
|
|
|
|
aria-label="Allocation depends on unhealthy drivers"
|
|
|
|
>
|
2022-01-24 15:58:28 +00:00
|
|
|
{{x-icon "alert-triangle" class="is-warning"}}
|
|
|
|
</span>
|
2018-05-11 18:35:48 +00:00
|
|
|
{{/if}}
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.allocation.nextAllocation}}
|
2022-04-28 18:02:15 +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}}
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.allocation.wasPreempted}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<span
|
|
|
|
data-test-icon="preemption"
|
|
|
|
class="tooltip text-center"
|
|
|
|
role="tooltip"
|
|
|
|
aria-label="Allocation was preempted"
|
|
|
|
>
|
2019-04-17 17:47:32 +00:00
|
|
|
{{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>
|
2022-04-28 18:02:15 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="allocations.allocation"
|
|
|
|
@model={{this.allocation}}
|
|
|
|
class="is-primary"
|
|
|
|
>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.allocation.shortId}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.context "job")}}
|
2018-07-20 00:24:36 +00:00
|
|
|
<td data-test-task-group>
|
2022-04-28 18:02:15 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="jobs.job.task-group"
|
|
|
|
@models={{array
|
|
|
|
(format-job-id this.allocation.job.id)
|
|
|
|
this.allocation.taskGroupName
|
|
|
|
}}
|
|
|
|
>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.allocation.taskGroupName}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2018-07-20 00:24:36 +00:00
|
|
|
</td>
|
|
|
|
{{/if}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<td data-test-create-time>
|
|
|
|
{{format-month-ts this.allocation.createTime}}
|
|
|
|
</td>
|
2019-01-30 17:57:55 +00:00
|
|
|
<td data-test-modify-time>
|
2022-04-28 18:02:15 +00:00
|
|
|
<span
|
|
|
|
class="tooltip"
|
|
|
|
aria-label="{{format-month-ts this.allocation.modifyTime}}"
|
|
|
|
>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{moment-from-now this.allocation.modifyTime}}
|
2019-01-30 17:57:55 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2018-03-28 21:51:54 +00:00
|
|
|
<td data-test-client-status class="is-one-line">
|
2022-04-28 18:02:15 +00:00
|
|
|
<span class="color-swatch {{this.allocation.clientStatus}}"></span>
|
|
|
|
{{this.allocation.clientStatus}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.context "volume")}}
|
2021-10-21 14:23:06 +00:00
|
|
|
<td data-test-client>
|
2022-01-24 15:58:28 +00:00
|
|
|
<Tooltip @text={{this.allocation.node.name}}>
|
|
|
|
<LinkTo @route="clients.client" @model={{this.allocation.node}}>
|
|
|
|
{{this.allocation.node.shortId}}
|
|
|
|
</LinkTo>
|
2021-10-21 17:12:33 +00:00
|
|
|
</Tooltip>
|
2021-10-21 14:23:06 +00:00
|
|
|
</td>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{/if}}
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (or (eq this.context "taskGroup") (eq this.context "job"))}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<td data-test-job-version>
|
|
|
|
{{this.allocation.jobVersion}}
|
|
|
|
</td>
|
2021-10-21 14:23:06 +00:00
|
|
|
<td data-test-client>
|
2022-01-24 15:58:28 +00:00
|
|
|
<Tooltip @text={{this.allocation.node.name}}>
|
|
|
|
<LinkTo @route="clients.client" @model={{this.allocation.node}}>
|
|
|
|
{{this.allocation.node.shortId}}
|
|
|
|
</LinkTo>
|
2021-10-21 17:12:33 +00:00
|
|
|
</Tooltip>
|
2021-10-21 14:23:06 +00:00
|
|
|
</td>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if (or (eq this.context "node") (eq this.context "volume"))}}
|
2017-09-19 14:47:10 +00:00
|
|
|
<td>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
|
2017-10-04 00:18:33 +00:00
|
|
|
...
|
|
|
|
{{else}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="jobs.job"
|
|
|
|
@model={{format-job-id this.allocation.job.id}}
|
|
|
|
data-test-job
|
|
|
|
>
|
|
|
|
{{this.allocation.job.name}}
|
|
|
|
</LinkTo>
|
|
|
|
<span class="is-faded" data-test-task-group>
|
|
|
|
/
|
|
|
|
{{this.allocation.taskGroup.name}}
|
|
|
|
</span>
|
2017-10-04 00:18:33 +00:00
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2022-04-28 18:02:15 +00:00
|
|
|
<td data-test-job-version class="is-1">
|
|
|
|
{{this.allocation.jobVersion}}
|
|
|
|
</td>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/if}}
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (not (eq this.context "volume"))}}
|
2022-04-28 18:02:15 +00:00
|
|
|
<td data-test-volume>
|
|
|
|
{{if this.allocation.taskGroup.volumes.length "Yes"}}
|
|
|
|
</td>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{/if}}
|
2018-07-19 20:31:02 +00:00
|
|
|
<td data-test-cpu class="is-1 has-text-centered">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AllocationStat
|
|
|
|
@metric="cpu"
|
2020-07-09 20:19:07 +00:00
|
|
|
@allocation={{this.allocation}}
|
|
|
|
@statsTracker={{this.stats}}
|
|
|
|
@isLoading={{this.fetchStats.isRunning}}
|
2022-04-28 18:02:15 +00:00
|
|
|
@error={{this.statsError}}
|
|
|
|
/>
|
2017-09-19 14:47:10 +00:00
|
|
|
</td>
|
2018-07-19 20:31:02 +00:00
|
|
|
<td data-test-mem class="is-1 has-text-centered">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AllocationStat
|
|
|
|
@metric="memory"
|
2020-07-09 20:19:07 +00:00
|
|
|
@allocation={{this.allocation}}
|
|
|
|
@statsTracker={{this.stats}}
|
|
|
|
@isLoading={{this.fetchStats.isRunning}}
|
2022-04-28 18:02:15 +00:00
|
|
|
@error={{this.statsError}}
|
|
|
|
/>
|
|
|
|
</td>
|