{% extends "admin/base_site.html" %} {% load i18n %} {% comment %} Task detail page for django-taskly. Displays all fields of a single TaskSnapshot in a structured layout. If last_error_traceback is present it is rendered inside a
 block.

Context variables
-----------------
task  TaskSnapshot — the snapshot instance looked up by task_id
{% endcomment %}

{% block title %}{{ task.task_name }} | {% trans "Django Taskly" %}{% endblock %}

{% block extrahead %}
  {{ block.super }}
  
{% endblock %}

{% block content %}
  
    ← {% trans "Back to Task List" %}
  

  

{{ task.task_name }}

{# -------------------------------------------------------------------- #} {# Identity #} {# -------------------------------------------------------------------- #}

{% trans "Identity" %}

{% trans "Task ID" %} {{ task.task_id }} {% trans "Task Name" %} {{ task.task_name }} {% trans "Task Module" %} {{ task.task_module }}
{# -------------------------------------------------------------------- #} {# Status & Backend #} {# -------------------------------------------------------------------- #}

{% trans "Status & Backend" %}

{% trans "Status" %} {% if task.status == 'SUCCESSFUL' %} {{ task.get_status_display }} {% elif task.status == 'FAILED' %} {{ task.get_status_display }} {% elif task.status == 'RUNNING' %} {{ task.get_status_display }} {% else %} {{ task.get_status_display }} {% endif %} {% trans "Backend" %} {{ task.backend }}
{# -------------------------------------------------------------------- #} {# Timing #} {# -------------------------------------------------------------------- #}

{% trans "Timing" %}

{% trans "Enqueued At" %} {% if task.enqueued_at %}{{ task.enqueued_at|date:"Y-m-d H:i:s" }}{% else %}—{% endif %} {% trans "Started At" %} {% if task.started_at %}{{ task.started_at|date:"Y-m-d H:i:s" }}{% else %}—{% endif %} {% trans "Finished At" %} {% if task.finished_at %}{{ task.finished_at|date:"Y-m-d H:i:s" }}{% else %}—{% endif %} {% trans "Duration" %} {% if task.duration_seconds is not None %} {{ task.duration_seconds|floatformat:2 }}s {% if task.is_slow %} {% trans "slow" %} {% endif %} {% else %} — {% endif %}
{# -------------------------------------------------------------------- #} {# Attempts & Errors #} {# -------------------------------------------------------------------- #}

{% trans "Attempts & Errors" %}

{% trans "Attempts" %} {{ task.attempts }} {% trans "Error Class" %} {% if task.last_error_class %} {{ task.last_error_class }} {% else %} {% trans "None" %} {% endif %}
{% trans "Error Traceback" %}
{% if task.last_error_traceback %}
{{ task.last_error_traceback }}
{% else %}

{% trans "No traceback recorded." %}

{% endif %}
{# -------------------------------------------------------------------- #} {# Audit #} {# -------------------------------------------------------------------- #}

{% trans "Audit" %}

{% trans "Created At" %} {{ task.created_at|date:"Y-m-d H:i:s" }} {% trans "Updated At" %} {{ task.updated_at|date:"Y-m-d H:i:s" }}
{% endblock %}