feat: storing tasks runs in Sqlite DB
This commit is contained in:
parent
41443e5a7d
commit
0d322ee70c
12 changed files with 274 additions and 112 deletions
|
|
@ -1 +1,12 @@
|
|||
<h1>Hello, {{ first_name }}</h1>
|
||||
<h1>Hello welcome on autotasker</h1>
|
||||
|
||||
You main want to start in here.
|
||||
<ul>
|
||||
<li><a href="/tasks">List tasks</a></li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Autotasker is free software under <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> licence.
|
||||
|
||||
You can find source code on a <a href="https://forge.lefuturiste.fr/mbess/autotasker">self-hosted forge repository</a>.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
<h1>List of task runs for {{ task.name }}</h1>
|
||||
<ul>
|
||||
{% for task_run in runs %}
|
||||
<li><a href="/tasks/{{ task.id }}/runs/{{ task_run.id }}">{{ task_run.id }}</a> {{ task_run.status }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
@ -1,5 +1,13 @@
|
|||
<h1>Tasks</h1>
|
||||
{% if tasks | length == 0 %}
|
||||
No tasks were configured.
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for task in tasks %}
|
||||
<li>{{ task.name }} <a href="/tasks/{{ task.id }}/run">Run task</a></li>
|
||||
<li>
|
||||
{{ task.name }}
|
||||
<a href="/tasks/{{ task.id }}/trigger">Trigger task</a>
|
||||
<a href="/tasks/{{ task.id }}/runs">See runs</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
<h1>Task run {{ run.id }}</h1>
|
||||
|
||||
<ul>
|
||||
<li>Id: {{ run.id }}</li>
|
||||
<li>State: {{ run.status }}</li>
|
||||
<li>Submitted at: {{ run.submitted_at }}</li>
|
||||
<li>Started at: {{ run.started_at }}</li>
|
||||
<li>Ended at: {{ run.ended_at }}</li>
|
||||
<li>Trigger Mode: {{ run.trigger_mode }}</li>
|
||||
</ul>
|
||||
|
||||
<h3>Logs</h3>
|
||||
<p>Exit code is {{ run.exit_code }}</p>
|
||||
<pre>
|
||||
{{ run.logs }}
|
||||
</pre>
|
||||
Loading…
Add table
Add a link
Reference in a new issue