123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- {% extends "layout.html" %}
- {% import 'utils.html' as utils %}
- {% block title %}Tasks - {{ config.NAME }}{% endblock %}
- {% block content %}
- {% include "header.html" %}
- <div style="margin:10%;margin-top:50px;margin-bottom:0;width:100%">
- <h3>Cron</h3>
- <table class="pure-table" style="width:100%">
- <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 cron %}
- <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>
- <h3>Dead</h3>
- <table class="pure-table" style="width:100%">
- <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>
- <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>
- <h3>Waiting</h3>
- <table class="pure-table" style="width:100%">
- <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>
- <h3>Success</h3>
- <table class="pure-table" style="width:100%">
- <thead>
- <tr>
- <th>#</th>
- <th>URL</th>
- <th>Payload</th>
- <th>Next run</th>
- <th>Response</th>
- </tr>
- </thead>
- <tbody>
- {% for task in success %}
- <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>
- {% endblock %}
|