github.com/hernad/nomad@v1.6.112/ui/app/components/job-status/failed-or-lost.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <section class="failed-or-lost">
     7    <h4>Replaced Allocations</h4>
     8    <div class="failed-or-lost-links">
     9      {{#if @supportsRescheduling}}
    10        <span>
    11          <Hds::TooltipButton @text="Allocations that have been rescheduled, on another node if possible, due to failure or manual restart" aria-label="Info">
    12            <FlightIcon @name="info" />
    13          </Hds::TooltipButton>
    14          <ConditionalLinkTo
    15            @condition={{@rescheduledAllocs.length}}
    16            @route="jobs.job.allocations"
    17            @model={{@job}}
    18            @query={{hash scheduling='["has-been-rescheduled"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}}
    19            @label="View Allocations"
    20          >
    21            {{@rescheduledAllocs.length}} Rescheduled
    22          </ConditionalLinkTo>
    23        </span>
    24      {{/if}}
    25  
    26      <span>
    27        <Hds::TooltipButton @text="Allocations that have been restarted in-place due to a task failure or manual restart" aria-label="Info">
    28          <FlightIcon @name="info" />
    29        </Hds::TooltipButton>
    30        <ConditionalLinkTo
    31          @condition={{@restartedAllocs.length}}
    32          @route="jobs.job.allocations"
    33          @model={{@job}}
    34          @query={{hash scheduling='["has-been-restarted"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}}
    35          @label="View Allocations"
    36        >
    37          {{@restartedAllocs.length}} Restarted
    38        </ConditionalLinkTo>
    39      </span>
    40    </div>
    41  </section>