2019-07-17 20:02:58 +00:00
|
|
|
{{title "Task " model.name}}
|
2019-07-02 21:42:38 +00:00
|
|
|
{{task-subnav task=model}}
|
2018-07-25 22:05:24 +00:00
|
|
|
<section class="section">
|
2019-05-20 22:36:15 +00:00
|
|
|
{{#if 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">
|
2019-05-21 00:19:24 +00:00
|
|
|
<h3 data-test-inline-error-title class="title is-4">{{error.title}}</h3>
|
|
|
|
<p data-test-inline-error-body>{{error.description}}</p>
|
2019-05-20 22:36:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-05-21 00:19:24 +00:00
|
|
|
<button data-test-inline-error-close class="button is-danger" onclick={{action onDismiss}}>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>
|
|
|
|
{{model.name}}
|
|
|
|
{{#if model.isConnectProxy}}
|
|
|
|
{{proxy-tag class="bumper-left"}}
|
|
|
|
{{/if}}
|
|
|
|
<span class="{{unless model.isConnectProxy "bumper-left"}} tag {{model.stateClass}}" data-test-state>{{model.state}}</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{#if model.isRunning}}
|
|
|
|
<div class="two-step-button">
|
|
|
|
{{exec/open-button
|
|
|
|
job=model.task.taskGroup.job
|
|
|
|
taskGroup=model.task.taskGroup
|
|
|
|
allocation=model.allocation
|
|
|
|
task=model.task}}
|
|
|
|
</div>
|
|
|
|
{{two-step-button
|
|
|
|
data-test-restart
|
|
|
|
idleText="Restart"
|
|
|
|
cancelText="Cancel"
|
|
|
|
confirmText="Yes, Restart"
|
|
|
|
confirmationMessage="Are you sure? This will restart the task in-place."
|
|
|
|
awaitingConfirmation=restartTask.isRunning
|
|
|
|
disabled=restartTask.isRunning
|
|
|
|
onConfirm=(perform restartTask)}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-07-25 22:05:24 +00:00
|
|
|
</h1>
|
2017-10-31 04:02:40 +00:00
|
|
|
|
2018-07-25 22:05:24 +00:00
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
|
|
|
<span class="label">Task Details</span>
|
|
|
|
<span class="pair" data-test-started-at>
|
|
|
|
<span class="term">Started At</span>
|
2019-01-31 06:44:43 +00:00
|
|
|
{{format-ts model.startedAt}}
|
2018-07-25 22:05:24 +00:00
|
|
|
</span>
|
|
|
|
{{#if model.finishedAt}}
|
2017-10-31 04:02:40 +00:00
|
|
|
<span class="pair">
|
2018-07-25 22:05:24 +00:00
|
|
|
<span class="term">Finished At</span>
|
2019-01-31 06:44:43 +00:00
|
|
|
{{format-ts model.finishedAt}}
|
2017-10-31 04:02:40 +00:00
|
|
|
</span>
|
2018-07-25 22:05:24 +00:00
|
|
|
{{/if}}
|
|
|
|
<span class="pair">
|
|
|
|
<span class="term">Driver</span>
|
|
|
|
{{model.task.driver}}
|
|
|
|
</span>
|
2017-10-31 04:02:40 +00:00
|
|
|
</div>
|
2018-07-25 22:05:24 +00:00
|
|
|
</div>
|
2017-10-31 04:02:40 +00:00
|
|
|
|
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">
|
2018-12-10 23:26:27 +00:00
|
|
|
{{#if model.isRunning}}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
{{primary-metric resource=model metric="cpu"}}
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
{{primary-metric resource=model metric="memory"}}
|
|
|
|
</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">
|
|
|
|
<h3 data-test-resource-error-headline class="empty-message-headline">Task isn't running</h3>
|
2018-12-10 23:26:27 +00:00
|
|
|
<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>
|
|
|
|
|
2019-09-04 14:39:56 +00:00
|
|
|
{{#if network.ports.length}}
|
2018-07-25 22:05:24 +00:00
|
|
|
<div class="boxed-section" data-test-task-addresses>
|
2017-10-31 04:02:40 +00:00
|
|
|
<div class="boxed-section-head">
|
2018-07-25 22:05:24 +00:00
|
|
|
Addresses
|
2017-10-31 04:02:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2019-09-04 14:39:56 +00:00
|
|
|
{{#list-table source=network.ports as |t|}}
|
2017-10-31 04:02:40 +00:00
|
|
|
{{#t.head}}
|
2018-07-25 22:05:24 +00:00
|
|
|
<th class="is-1">Dynamic?</th>
|
|
|
|
<th class="is-2">Name</th>
|
|
|
|
<th>Address</th>
|
2017-10-31 04:02:40 +00:00
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
2018-07-25 22:05:24 +00:00
|
|
|
<tr data-test-task-address>
|
|
|
|
<td data-test-task-address-is-dynamic>{{if row.model.isDynamic "Yes" "No"}}</td>
|
|
|
|
<td data-test-task-address-name>{{row.model.name}}</td>
|
|
|
|
<td data-test-task-address-address>
|
2019-03-25 22:49:53 +00:00
|
|
|
<a href="http://{{network.ip}}:{{row.model.port}}" target="_blank" rel="noopener noreferrer">
|
2018-07-25 22:05:24 +00:00
|
|
|
{{network.ip}}:{{row.model.port}}
|
|
|
|
</a>
|
2017-10-31 04:02:40 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-25 22:05:24 +00:00
|
|
|
{{/if}}
|
|
|
|
|
2020-02-13 07:01:38 +00:00
|
|
|
{{#if model.task.volumeMounts.length}}
|
|
|
|
<div data-test-volumes class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Volumes
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
|
|
|
{{#list-table source=model.task.volumeMounts as |t|}}
|
|
|
|
{{#t.head}}
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Destination</th>
|
|
|
|
<th>Permissions</th>
|
|
|
|
<th>Client Source</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
|
|
|
<tr data-test-volume>
|
|
|
|
<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>
|
|
|
|
<td data-test-volume-client-source>{{row.model.source}}</td>
|
|
|
|
</tr>
|
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
</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">
|
|
|
|
{{#list-table source=(reverse model.events) class="is-striped" as |t|}}
|
|
|
|
{{#t.head}}
|
|
|
|
<th class="is-3">Time</th>
|
|
|
|
<th class="is-1">Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
|
|
|
<tr data-test-task-event>
|
2019-01-31 06:44:43 +00:00
|
|
|
<td data-test-task-event-time>{{format-ts row.model.time}}</td>
|
2018-07-25 22:05:24 +00:00
|
|
|
<td data-test-task-event-type>{{row.model.type}}</td>
|
|
|
|
<td data-test-task-event-message>
|
|
|
|
{{#if row.model.message}}
|
|
|
|
{{row.model.message}}
|
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|