{% extends "base.html" %} {% block content %} {% if job %} {% set s = job.status.value %} {% if s in ("pending", "retrying", "waiting", "failed", "cancelled", "dead") %}
{% if s in ("pending", "retrying", "waiting") %} {% endif %} {% if s in ("failed", "cancelled") %} {% endif %} {% if s == "dead" %} {% endif %}
{% endif %} {% if s in ("failed", "dead") and job.error %}
Error
{{ job.error }}
{% endif %}
Identity
ID
{{ job.id }}
Task
{{ job.task_name }}
Queue
{{ job.queue }}
Priority
{{ job.priority }}
{% if job.worker_id %}
Worker
{{ job.worker_id }}
{% endif %} {% if job.dead_letter_queue %}
DLQ
{{ job.dead_letter_queue }}
{% endif %} {% if job.depends_on %}
Depends on
{% for dep_id in job.depends_on %} {{ dep_id[:8] }}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}
Timing
{% if job.started_at and job.completed_at %} {% set dur = (job.completed_at - job.started_at).total_seconds() %} {% else %} {% set dur = None %} {% 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 "—" }}
{% if dur is not none %}
Duration
{{ "%.3f"|format(dur) }}s
{% endif %} {% if job.run_at %}
Scheduled
{{ job.run_at.strftime("%Y-%m-%d %H:%M:%S") }}
{% endif %}
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", "waiting") %}
{% endif %} {% else %}

Job not found.

{% endif %} {% endblock %}