mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
49 lines
1.5 KiB
Handlebars
49 lines
1.5 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
~}}
|
|
|
|
<section class="failed-or-lost">
|
|
<h4>Replaced Allocations</h4>
|
|
<div class="failed-or-lost-links">
|
|
{{#if @supportsRescheduling}}
|
|
<span>
|
|
<span
|
|
class="tooltip multiline text-center"
|
|
role="tooltip"
|
|
aria-label="Allocations that have been rescheduled, on another node if possible, due to failure or manual restart"
|
|
>
|
|
<FlightIcon @name="info" />
|
|
</span>
|
|
<ConditionalLinkTo
|
|
@condition={{@rescheduledAllocs.length}}
|
|
@route="jobs.job.allocations"
|
|
@model={{@job}}
|
|
@query={{hash scheduling='["has-been-rescheduled"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}}
|
|
@label="View Allocations"
|
|
>
|
|
{{@rescheduledAllocs.length}} Rescheduled
|
|
</ConditionalLinkTo>
|
|
</span>
|
|
{{/if}}
|
|
|
|
<span>
|
|
<span
|
|
class="tooltip multiline text-center"
|
|
role="tooltip"
|
|
aria-label="Allocations that have been restarted in-place due to a task failure or manual restart"
|
|
>
|
|
<FlightIcon @name="info" />
|
|
</span>
|
|
<ConditionalLinkTo
|
|
@condition={{@restartedAllocs.length}}
|
|
@route="jobs.job.allocations"
|
|
@model={{@job}}
|
|
@query={{hash scheduling='["has-been-restarted"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}}
|
|
@label="View Allocations"
|
|
>
|
|
{{@restartedAllocs.length}} Restarted
|
|
</ConditionalLinkTo>
|
|
</span>
|
|
</div>
|
|
</section> |