2019-04-07 10:27:48 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import 'utils.html' as utils %}
|
|
|
|
{% block title %}Tasks - {{ config.NAME }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
|
|
{% include "header.html" %}
|
|
|
|
<div style="margin-top:50px;">
|
|
|
|
|
2019-04-08 14:41:09 +00:00
|
|
|
<h3>Cron</h3>
|
|
|
|
<table class="pure-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>URL</th>
|
|
|
|
<th>Payload</th>
|
|
|
|
<th>Schedule</th>
|
|
|
|
<th>Next run</th>
|
|
|
|
<th>Response</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for task in dead %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ task.task_id }}</td>
|
|
|
|
<td>{{ task.url }} ({{ task.expected }})</td>
|
|
|
|
<td>{{ task.payload }}</td>
|
|
|
|
<td>{{ task.schedule }}</td>
|
|
|
|
<td>{{ task.next_run }}</td>
|
|
|
|
<td>Tries #{{ task.tries }}: {{ task.last_error_body }} ({{ task.last_error_status_code }})</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2019-04-07 10:27:48 +00:00
|
|
|
<h3>Dead</h3>
|
|
|
|
<table class="pure-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>URL</th>
|
|
|
|
<th>Payload</th>
|
|
|
|
<th>Next run</th>
|
|
|
|
<th>Response</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for task in dead %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ task.task_id }}</td>
|
2019-04-08 14:41:09 +00:00
|
|
|
<td>{{ task.url }} ({{ task.expected }})</td>
|
2019-04-07 10:27:48 +00:00
|
|
|
<td>{{ task.payload }}</td>
|
|
|
|
<td>{{ task.next_run }}</td>
|
|
|
|
<td>Tries #{{ task.tries }}: {{ task.last_error_body }} ({{ task.last_error_status_code }})</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Waiting</h3>
|
|
|
|
<table class="pure-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>URL</th>
|
|
|
|
<th>Payload</th>
|
|
|
|
<th>Next run</th>
|
|
|
|
<th>Response</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for task in waiting %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ task.task_id }}</td>
|
|
|
|
<td>{{ task.url }} ({{ task.expected }}</td>
|
|
|
|
<td>{{ task.payload }}</td>
|
|
|
|
<td>{{ task.next_run }}</td>
|
|
|
|
<td>Tries #{{ task.tries }}: {{ task.last_error_body }} ({{ task.last_error_status_code }})</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|