Files
ajp_anton 3bfd199b9c
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8 context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; } name:ph… (push) Successful in 40s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 49s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3 context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m37s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:linkki-tiedotus fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:linkki-tiedotus oci_labels:… (push) Successful in 36s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:timepoll fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:timepoll oci_labels:org.opencontai… (push) Successful in 42s
Add cooperative task recovery and persistent live status
2026-10-29 22:12:04 +00:00

51 lines
2.6 KiB
HTML

{% extends "base.html" %}
{% from "task_status.html" import task_status, live_state_data %}
{% block title %}Run {{ run.id }} · Server Maintenance{% endblock %}
{% block content %}
<p>
<a href="{{ url_for('index') }}">← Tasks</a>
· <a href="{{ url_for('history', target_kind=run.target_kind, target_path=run.target_path) }}">Run history</a>
</p>
<h1>{{ run.target_kind|title }} run #{{ run.id }}</h1>
<dl>
<dt>Target</dt><dd>{{ run.target_path }}</dd>
<dt>Status</dt><dd id="run-status" data-run-status="{{ run.status }}" data-state-url="{{ url_for('run_state', run_id=run.id) }}">{{ display_status }}</dd>
<dt>Progress</dt><dd id="run-progress" class="run-progress">{{ progress or "—" }}</dd>
{% if run.recovery_of_run_id is not none %}<dt>Recovery of</dt><dd><a href="{{ url_for('run_detail', run_id=run.recovery_of_run_id) }}">Run #{{ run.recovery_of_run_id }}</a></dd>{% endif %}
{% if recovery_run %}<dt>Recovery run</dt><dd><a href="{{ recovery_run.detail_url }}">Run #{{ recovery_run.run_id }}</a> · {{ recovery_run.display_status }}</dd>{% endif %}
<dt>Started</dt><dd>{{ run.started_at|timestamp }}</dd>
<dt>Finished</dt><dd>{{ run.finished_at|timestamp }}</dd>
<dt>Exit code</dt><dd>{{ run.exit_code if run.exit_code is not none else "—" }}</dd>
{% if run.message %}<dt>Message</dt><dd>{{ run.message }}</dd>{% endif %}
</dl>
{% if run.status in ("queued", "running") %}
<form method="post" action="{{ url_for('cancel_run', run_id=run.id) }}">
<button type="submit">Cancel</button>
</form>
{% endif %}
{% if execution_task %}
{{ live_state_data(live_states) }}
{% set state = live_states.tasks[execution_task.id] %}
<form method="post" action="{{ url_for('execute_dry_run', run_id=run.id) }}" data-task-id="{{ execution_task.id }}">
<fieldset class="task-controls"{% if state.active_run or state.blocked_by %} disabled{% endif %}>
<button type="submit">{{ execution_task.execution.field.options[1].label }}</button>
</fieldset>
{{ task_status(state) }}
</form>
{% endif %}
{% if children %}
<h2>Group tasks</h2>
<ul>
{% for child in children %}
<li><a href="{{ url_for('run_detail', run_id=child.id) }}">{{ child.target_path }}</a> · {{ child.status }}</li>
{% endfor %}
</ul>
{% endif %}
<section id="run-artifacts" data-artifacts-url="{{ url_for('run_artifacts', run_id=run.id) }}" hidden>
<h2>Artifacts</h2>
<ul></ul>
</section>
<h2>Output</h2>
<pre id="run-output" data-output-url="{{ url_for('run_output', run_id=run.id) }}" data-output-offset="{{ output_offset }}">{{ output }}</pre>
{% endblock %}