{# il2ks-template: templates/admin/il2ks_ingest_status.html v1 - copy this line along when you override #} {% extends "admin/base_site.html" %} {% load i18n static %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% translate "Last mission ingested" %}
{% if overview.last_ok %}
{{ overview.last_ok.mission_uid }}
{{ overview.last_ok.finished_at|default:overview.last_ok.started_at|date:"Y-m-d H:i" }}
{% else %}
—
{% translate "Nothing ingested yet." %}
{% endif %}
{% translate "Latest attempt" %}
{% if overview.last_run %}
{{ overview.last_run.get_status_display }}
{{ overview.last_run.mission_uid }}, {{ overview.last_run.started_at|date:"Y-m-d H:i" }}
{% else %}
—
{% endif %}
{% translate "Missions stored" %}
{{ overview.missions_stored }}
{% translate "Last 30 days" %}
{{ overview.ok_recent }} / {{ overview.failed_recent }}
{% translate "runs ok / failed" %}

{% translate "Reprocess all missions" %}

{% translate "Re-runs every stored mission from its archive with the current rules, then rebuilds the aggregates. It can take a long time on a big archive. The watch process starts it at its next tick; the site keeps working meanwhile." %}

{% if overview.reprocess_running %} {% with job=overview.reprocess_running %}

{% translate "Running" %} {% blocktranslate with started=job.started_at|date:"Y-m-d H:i" done=job.missions_ok failed=job.missions_failed total=job.missions_total %}since {{ started }}: {{ done }} of {{ total }} missions done, {{ failed }} failed.{% endblocktranslate %}

{% endwith %} {% elif overview.reprocess_pending %}

{% translate "Waiting" %} {% blocktranslate with at=overview.reprocess_pending.requested_at|date:"Y-m-d H:i" who=overview.reprocess_pending.requested_by %}requested {{ at }} by {{ who }}; it starts at the next watch tick.{% endblocktranslate %}

{% endif %} {% if overview.reprocess_last %} {% with job=overview.reprocess_last %}

{% translate "Last request" %}: {{ job.get_status_display }}, {{ job.finished_at|date:"Y-m-d H:i" }}{% if job.status == 'done' %}: {% blocktranslate with ok=job.missions_ok failed=job.missions_failed missing=job.missions_missing %}{{ ok }} missions reprocessed, {{ failed }} failed, {{ missing }} without an archive.{% endblocktranslate %}{% endif %} {% if job.error %}{{ job.error|truncatechars:200 }}{% endif %}

{% endwith %} {% endif %} {% if perms.il2ks_db.add_reprocessrequest %} {% if overview.can_request_reprocess %}

{% translate "Reprocess all missions…" %}

{% endif %} {% endif %}

{% translate "Failed, waiting for a retry" %} ({{ overview.waiting_retry|length }})

{% if overview.waiting_retry %} {% for run in overview.waiting_retry %} {% endfor %}
{% translate "Mission" %}{% translate "Attempts" %}{% translate "Next retry" %}{% translate "Failed" %}{% translate "Error" %}
{{ run.mission_uid }} {{ run.attempts }} {{ run.next_retry_at|date:"Y-m-d H:i" }} {{ run.started_at|date:"Y-m-d H:i" }} {{ run.error|default:""|truncatechars:80 }}
{% else %}
{% translate "None." %}
{% endif %}

{% translate "Given up" %} ({{ overview.gave_up|length }})

{% translate "No more automatic retries. They are retried when their files or the il2ks version change, or run `il2ks reprocess --mission UID` after fixing the cause." %}

{% if overview.gave_up %} {% for run in overview.gave_up %} {% endfor %}
{% translate "Mission" %}{% translate "Attempts" %}{% translate "Failed" %}{% translate "Error" %}
{{ run.mission_uid }} {{ run.attempts }} {{ run.started_at|date:"Y-m-d H:i" }} {{ run.error|default:""|truncatechars:80 }}
{% else %}
{% translate "None." %}
{% endif %}

{% translate "Unknown object types" %} ({{ overview.unknown_objects|length }})

{% translate "Seen in logs but missing from the catalog. Give them a name here, and report them so the catalog can be updated." %}

{% if overview.unknown_objects %} {% for obj in overview.unknown_objects %} {% endfor %}
{% translate "Log name" %}{% translate "Display name" %}{% translate "Class" %}
{{ obj.log_name }} {{ obj.display_name }} {{ obj.get_cls_display }}
{% else %}
{% translate "None." %}
{% endif %}

{% translate "Unknown event types and keys, last 30 days" %}

{% translate "Log lines the parser does not know. Harmless until the game changes its log format; worth reporting." %}

{% if overview.unknown_atypes or overview.unknown_keys %} {% for item in overview.unknown_atypes %} {% endfor %} {% for item in overview.unknown_keys %} {% endfor %}
{% translate "Kind" %}{% translate "Name" %}{% translate "Lines" %}{% translate "Missions" %}
{% translate "Event type (AType)" %}{{ item.name }}{{ item.count }}{{ item.missions }}
{% translate "Key (AType:KEY)" %}{{ item.name }}{{ item.count }}{{ item.missions }}
{% else %}
{% translate "None." %}
{% endif %}

{% translate "Recently completed by idle timeout" %}

{% translate "These ended without a mission-end event; worth a look in case the server crashed mid-mission." %}

{% if overview.idle_completions %} {% for run in overview.idle_completions %} {% endfor %}
{% translate "Mission" %}{% translate "Ingested" %}{% translate "Warnings" %}
{{ run.mission_uid }} {{ run.started_at|date:"Y-m-d H:i" }} {{ run.warnings|length }}
{% else %}
{% translate "None." %}
{% endif %}

{% translate "All ingestion runs" %} →

{% endblock %}