{% extends "layout.html" %}{% block content %}

Jobs

{% if jobs_enabled %}Each job starts daily-epub-job@<name>.service through systemd; the unit runs daily-epub job run <name> and records itself here.{% else %}Jobs are disabled on this server; the catalogue below is read-only.{% endif %}

{% if jobs_enabled %}

Jobs that take the run lock wait for nothing: a second generate while one is running fails immediately.

{% else %}

Jobs are disabled on this server (server.jobs_enabled = false); run the commands by hand instead.

{% endif %}
{% for card in cards %}

{{ card.name }}

{% if let Some(status) = card.last_status %}{{ status }}{% else %}never run{% endif %}

{{ card.description }}

{% if let Some(id) = card.last_id %}Last started {% if let Some(when) = card.last_requested %}{{ when }}{% else %}job {{ id }}{% endif %}{% else %}No run recorded yet.{% endif %}{% if let Some(lock) = card.lock %} ยท takes the {{ lock }} lock{% endif %}

{% if card.dated %}{% endif %}
{% endfor %}

History

{% if jobs.is_empty() %}

No jobs recorded yet.

{% else %}
{% for job in jobs %}{% endfor %}
jobnamerequested byrequestedstartedfinisheddurationstatusmessagerun
{{ job.id }} {{ job.name }} {{ job.requested_by }} {{ job.requested }} {{ job.started }} {{ job.finished }} {{ job.duration }} {{ job.status }} {% if let Some(message) = job.message %}{{ message }}{% endif %} {% if let Some(run_id) = job.run_id %}{{ run_id }}{% endif %}
{% endif %}
{% endblock %}