add time to message, ad status info in worker table, fix subdef elastic flush

This commit is contained in:
aynsix
2020-05-14 18:48:00 +03:00
parent 67c8bf2125
commit 0b45ae377c
11 changed files with 219 additions and 9 deletions

View File

@@ -10,6 +10,11 @@
{{ "Configuration" | trans }}
</a>
</li>
<li class="worker-info" role="presentation">
<a href="#worker-info" aria-controls="worker-info" role="tab" data-toggle="tab" data-url="/admin/worker-manager/info">
{{ "Working info" | trans }}
</a>
</li>
<li class="worker-searchengine" role="presentation">
<a href="#worker-searchengine" aria-controls="worker-searchengine" role="tab" data-toggle="tab" data-url="/admin/worker-manager/searchengine">
{{ "Searchengine" | trans }}
@@ -36,6 +41,7 @@
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade" id="worker-configuration"></div>
<div role="tabpanel" class="tab-pane fade" id="worker-info"></div>
<div role="tabpanel" class="tab-pane fade" id="worker-searchengine"></div>
<div role="tabpanel" class="tab-pane fade" id="worker-pull-assets"></div>
<div role="tabpanel" class="tab-pane fade in active" id="worker-subview"></div>

View File

@@ -0,0 +1,49 @@
<h1> worker information</h1>
<form action="{{ path("worker_admin_truncate") }}" method="POST">
<p class="alert alert-danger">
<strong>Warning!</strong>
It's truncate all work table content !
</p>
<button class="btn btn-primary">
{{ 'Truncate table' }}
</button>
</form>
<form action="{{ path("worker_admin_delete_finished") }}" method="POST">
<p class="alert alert-danger">
<strong>Warning!</strong>
It's delete all finished works !
</p>
<button class="btn btn-primary">
{{ 'Delete finished' }}
</button>
</form>
<table class="admintable">
<thead>
<tr>
<th class="sortable">databox_id</th>
<th class="sortable">record_id</th>
<th class="sortable">work</th>
<th class="sortable">work_on</th>
<th class="sortable">created</th>
<th class="sortable">published</th>
<th class="sortable">status</th>
</tr>
</thead>
<tbody>
{% for workerRow in workerRunningJob %}
<tr>
<td>{{ workerRow.databoxId }}</td>
<td>{{ workerRow.recordId }}</td>
<td>{{ workerRow.work }}</td>
<td>{{ workerRow.workOn }}</td>
<td>{{ workerRow.created|date('Y-m-d H:i:s') }}</td>
<td>{{ workerRow.published|date('Y-m-d H:i:s') }}</td>
<td>{{ workerRow.status }}</td>
</tr>
{% endfor %}
</tbody>
</table>