2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "Task " this.model.name}}
|
2020-07-09 20:19:07 +00:00
|
|
|
<TaskSubnav @task={{this.model}} />
|
2018-07-25 22:05:24 +00:00
|
|
|
<section class="section">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.error}}
|
2019-05-21 00:19:24 +00:00
|
|
|
<div data-test-inline-error class="notification is-danger">
|
2019-05-20 22:36:15 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2022-01-19 16:20:00 +00:00
|
|
|
<h3 data-test-inline-error-title class="title is-4">
|
|
|
|
{{this.error.title}}
|
|
|
|
</h3>
|
|
|
|
<p data-test-inline-error-body>
|
|
|
|
{{this.error.description}}
|
|
|
|
</p>
|
2019-05-20 22:36:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2022-01-19 16:20:00 +00:00
|
|
|
<button
|
|
|
|
data-test-inline-error-close
|
|
|
|
class="button is-danger"
|
|
|
|
onclick={{action this.onDismiss}}
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
Okay
|
|
|
|
</button>
|
2019-05-20 22:36:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2020-03-24 23:22:16 +00:00
|
|
|
<h1 class="title with-flex" data-test-title>
|
|
|
|
<div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.model.name}}
|
|
|
|
{{#if this.model.isConnectProxy}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ProxyTag @class="bumper-left" />
|
2020-03-24 23:22:16 +00:00
|
|
|
{{/if}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<span
|
|
|
|
class="{{unless this.model.isConnectProxy "bumper-left"}}
|
|
|
|
tag
|
|
|
|
{{this.model.stateClass}}"
|
|
|
|
data-test-state
|
|
|
|
>
|
|
|
|
{{this.model.state}}
|
|
|
|
</span>
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.isRunning}}
|
2020-03-24 23:22:16 +00:00
|
|
|
<div class="two-step-button">
|
2020-06-01 19:03:56 +00:00
|
|
|
<Exec::OpenButton
|
2020-07-09 20:19:07 +00:00
|
|
|
@job={{this.model.task.taskGroup.job}}
|
|
|
|
@taskGroup={{this.model.task.taskGroup}}
|
|
|
|
@allocation={{this.model.allocation}}
|
2022-01-19 16:20:00 +00:00
|
|
|
@task={{this.model.task}}
|
|
|
|
/>
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
<TwoStepButton
|
2020-03-24 23:22:16 +00:00
|
|
|
data-test-restart
|
2020-06-01 19:03:56 +00:00
|
|
|
@alignRight={{true}}
|
2022-03-24 20:38:43 +00:00
|
|
|
@idleText="Restart Task"
|
2020-06-01 19:03:56 +00:00
|
|
|
@cancelText="Cancel"
|
2022-03-24 20:38:43 +00:00
|
|
|
@confirmText="Yes, Restart Task"
|
2020-06-01 19:03:56 +00:00
|
|
|
@confirmationMessage="Are you sure? This will restart the task in-place."
|
2020-07-09 20:19:07 +00:00
|
|
|
@awaitingConfirmation={{this.restartTask.isRunning}}
|
|
|
|
@disabled={{this.restartTask.isRunning}}
|
2022-01-19 16:20:00 +00:00
|
|
|
@onConfirm={{perform this.restartTask}}
|
|
|
|
/>
|
2020-03-24 23:22:16 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-07-25 22:05:24 +00:00
|
|
|
</h1>
|
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
2022-01-19 16:20:00 +00:00
|
|
|
<span class="label">
|
|
|
|
Task Details
|
|
|
|
</span>
|
2018-07-25 22:05:24 +00:00
|
|
|
<span class="pair" data-test-started-at>
|
2022-01-19 16:20:00 +00:00
|
|
|
<span class="term">
|
|
|
|
Started At
|
|
|
|
</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{format-ts this.model.startedAt}}
|
2018-07-25 22:05:24 +00:00
|
|
|
</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.finishedAt}}
|
2017-10-31 04:02:40 +00:00
|
|
|
<span class="pair">
|
2022-01-19 16:20:00 +00:00
|
|
|
<span class="term">
|
|
|
|
Finished At
|
|
|
|
</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{format-ts this.model.finishedAt}}
|
2017-10-31 04:02:40 +00:00
|
|
|
</span>
|
2018-07-25 22:05:24 +00:00
|
|
|
{{/if}}
|
|
|
|
<span class="pair">
|
2022-01-19 16:20:00 +00:00
|
|
|
<span class="term">
|
|
|
|
Driver
|
|
|
|
</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{this.model.task.driver}}
|
2018-07-25 22:05:24 +00:00
|
|
|
</span>
|
2020-04-30 13:15:19 +00:00
|
|
|
<span class="pair">
|
2022-01-19 16:20:00 +00:00
|
|
|
<span class="term">
|
|
|
|
Lifecycle
|
|
|
|
</span>
|
|
|
|
<span data-test-lifecycle>
|
|
|
|
{{this.model.task.lifecycleName}}
|
|
|
|
</span>
|
2020-04-30 13:15:19 +00:00
|
|
|
</span>
|
2022-07-13 15:40:13 +00:00
|
|
|
|
|
|
|
{{#if (and (can "list variables") this.model.task.pathLinkedVariable)}}
|
|
|
|
<span class="pair" data-test-task-stat="variables">
|
|
|
|
<LinkTo @route="variables.variable" @model={{this.model.task.pathLinkedVariable.id}}>Variables</LinkTo>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-10-31 04:02:40 +00:00
|
|
|
</div>
|
2018-07-25 22:05:24 +00:00
|
|
|
</div>
|
2018-09-14 17:21:48 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head is-hollow">
|
|
|
|
Resource Utilization
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.isRunning}}
|
2018-12-10 23:26:27 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2021-03-19 21:34:00 +00:00
|
|
|
<PrimaryMetric::Task @taskState={{this.model}} @metric="cpu" />
|
2018-12-10 23:26:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
2021-03-19 21:34:00 +00:00
|
|
|
<PrimaryMetric::Task @taskState={{this.model}} @metric="memory" />
|
2018-12-10 23:26:27 +00:00
|
|
|
</div>
|
2018-09-14 17:21:48 +00:00
|
|
|
</div>
|
2018-12-10 23:26:27 +00:00
|
|
|
{{else}}
|
2018-12-11 01:28:35 +00:00
|
|
|
<div data-test-resource-error class="empty-message">
|
2022-01-19 16:20:00 +00:00
|
|
|
<h3 data-test-resource-error-headline class="empty-message-headline">
|
|
|
|
Task isn't running
|
|
|
|
</h3>
|
|
|
|
<p class="empty-message-body">
|
|
|
|
Only running tasks utilize resources.
|
|
|
|
</p>
|
2018-09-14 17:21:48 +00:00
|
|
|
</div>
|
2018-12-10 23:26:27 +00:00
|
|
|
{{/if}}
|
2018-09-14 17:21:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.task.volumeMounts.length}}
|
2020-02-13 07:01:38 +00:00
|
|
|
<div data-test-volumes class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Volumes
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-07-09 20:19:07 +00:00
|
|
|
<ListTable @source={{this.model.task.volumeMounts}} as |t|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.head>
|
2022-01-19 16:20:00 +00:00
|
|
|
<th>
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Destination
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Permissions
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Client Source
|
|
|
|
</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
2020-02-13 07:01:38 +00:00
|
|
|
<tr data-test-volume>
|
2022-01-19 16:20:00 +00:00
|
|
|
<td data-test-volume-name>
|
|
|
|
{{row.model.volume}}
|
|
|
|
</td>
|
|
|
|
<td data-test-volume-destination>
|
|
|
|
<code>
|
|
|
|
{{row.model.destination}}
|
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
<td data-test-volume-permissions>
|
|
|
|
{{if row.model.readOnly "Read" "Read/Write"}}
|
|
|
|
</td>
|
2022-01-26 19:17:29 +00:00
|
|
|
<td data-test-volume-client-source>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{#if row.model.isCSI}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="csi.volumes.volume"
|
2022-04-21 17:57:18 +00:00
|
|
|
@model={{concat
|
|
|
|
(format-volume-name
|
|
|
|
source=row.model.source
|
|
|
|
isPerAlloc=row.model.volumeDeclaration.perAlloc
|
|
|
|
volumeExtension=this.model.allocation.volumeExtension)
|
|
|
|
"@"
|
|
|
|
row.model.namespace.id
|
2022-01-19 16:20:00 +00:00
|
|
|
}}
|
|
|
|
>
|
2022-04-21 17:57:18 +00:00
|
|
|
{{format-volume-name
|
|
|
|
source=row.model.source
|
|
|
|
isPerAlloc=row.model.volumeDeclaration.perAlloc
|
|
|
|
volumeExtension=this.model.allocation.volumeExtension}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo>
|
2020-03-25 12:51:26 +00:00
|
|
|
{{else}}
|
2022-01-26 19:17:29 +00:00
|
|
|
{{row.model.source}}
|
2020-03-25 12:51:26 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2020-02-13 07:01:38 +00:00
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2020-02-13 07:01:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-25 22:05:24 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Recent Events
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2022-01-19 16:20:00 +00:00
|
|
|
<ListTable
|
|
|
|
@source={{reverse this.model.events}}
|
|
|
|
@class="is-striped" as |t|
|
|
|
|
>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.head>
|
2022-01-19 16:20:00 +00:00
|
|
|
<th class="is-3">
|
|
|
|
Time
|
|
|
|
</th>
|
|
|
|
<th class="is-1">
|
|
|
|
Type
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Description
|
|
|
|
</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
2018-07-25 22:05:24 +00:00
|
|
|
<tr data-test-task-event>
|
2022-01-19 16:20:00 +00:00
|
|
|
<td data-test-task-event-time>
|
|
|
|
{{format-ts row.model.time}}
|
|
|
|
</td>
|
|
|
|
<td data-test-task-event-type>
|
|
|
|
{{row.model.type}}
|
|
|
|
</td>
|
2018-07-25 22:05:24 +00:00
|
|
|
<td data-test-task-event-message>
|
|
|
|
{{#if row.model.message}}
|
|
|
|
{{row.model.message}}
|
|
|
|
{{else}}
|
2022-01-19 16:20:00 +00:00
|
|
|
<em>
|
|
|
|
No message
|
|
|
|
</em>
|
2018-07-25 22:05:24 +00:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2018-07-25 22:05:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-19 16:20:00 +00:00
|
|
|
</section>
|