{% extends "base.html" %} {% block title %}pgqueuer · job {{ job_id }}{% endblock %} {% block content %}

Job {{ job_id }}

{% if job %}
Entrypoint{{ job.entrypoint }}
Status{{ job.status }}
Priority{{ job.priority }}
Attempts{{ job.attempts }}
Created{{ job.created | dt }}
Updated{{ job.updated | dt }}
Heartbeat{{ job.heartbeat | dt }}
Execute after{{ job.execute_after | dt }}
Worker{{ job.queue_manager_id or "–" }}

{% if job.status in ("queued", "picked") %} {% endif %} {% if job.status == "failed" %}

{% endif %}

Payload ({{ payload.kind }})

{% if payload.kind == "empty" %}

No payload.

{% else %}
{{ payload.text }}
{% endif %} {% if job.headers %}

Headers

{{ job.headers | tojson(indent=2) }}
{% endif %} {% else %}

This job is no longer in the queue table; only its log history remains.

{% endif %} {% set exceptions = history | selectattr("traceback") | list %} {% if exceptions %}

Exception{% if exceptions | length > 1 %}s{% endif %}

{% for h in exceptions %}
{{ h.traceback.exception_type }}: {{ h.traceback.exception_message }}
{{ h.created | dt }}
{{ h.traceback.traceback }}
{% if h.traceback.additional_context %}
{{ h.traceback.additional_context | tojson(indent=2) }}
{% endif %}
{% endfor %} {% endif %}

History

{% if history %} {% for h in history %} {% endfor %}
WhenStatus
{{ h.created | dt }} {{ h.status }} {% if h.traceback %} exception {% endif %}
{% else %}

No log history for this job.

{% endif %} {% endblock %}