{% extends "base.html" %} {% block content %} {% if job %} {% set s = job.status.value %} {% if s in ("pending", "retrying") or s in ("failed", "cancelled") %}
{% if s in ("pending", "retrying") %} {% endif %} {% if s in ("failed", "cancelled") %} {% endif %}
{% endif %} {% if s == "failed" and job.error %}
Error
{{ job.error }}
{% endif %}
Identity
ID {{ job.id }}
Task {{ job.task_name }}
Queue {{ job.queue }}
Status {{ s }}
Worker {{ job.worker_id or "—" }}
Timing
{% if job.started_at and job.completed_at %} {% set dur = (job.completed_at - job.started_at).total_seconds() %} {% else %} {% set dur = None %} {% endif %} {% if dur is not none %} {% endif %} {% if job.run_at %} {% endif %}
Enqueued {{ job.enqueued_at.strftime("%Y-%m-%d %H:%M:%S") }}
Started {{ job.started_at.strftime("%Y-%m-%d %H:%M:%S") if job.started_at else "—" }}
Completed {{ job.completed_at.strftime("%Y-%m-%d %H:%M:%S") if job.completed_at else "—" }}
Duration {{ "%.3f"|format(dur) }}s
Run at {{ job.run_at.strftime("%Y-%m-%d %H:%M:%S") }}
Retries {{ job.retries }} / {{ job.max_retries }} {% if job.max_retries > 0 %} {% for i in range(job.max_retries) %} {% endfor %} {% endif %}
Arguments
{% if job.args or job.kwargs %}
{% if job.args %}args:
{{ job.args | tojson(indent=2) }}
{% endif %}{% if job.kwargs %}kwargs:
{{ job.kwargs | tojson(indent=2) }}{% endif %}
{% else %}

No arguments.

{% endif %}
Result
{% if job.result is not none %}
{{ job.result | tojson(indent=2) }}
{% elif s == "completed" %}

Completed — result not saved.
(use save_result=True on the task)

{% else %}

{% endif %}
{% if s in ("pending", "running", "retrying") %}
{% endif %} {% else %}

Job not found.

{% endif %} {% endblock %}