{% extends "base.html" %} {% from "_page_header.html" import page_header %} {% from "_components.html" import badge, identifier, kv, operations_journey %} {% block content %} {% call page_header(row.operation_label, row.subject) %}
{% if row.status_label == "Succeeded" %}{{ badge(row.status_label, "ok") }} {% elif row.status_label == "Failed" %}{{ badge(row.status_label, "error") }} {% elif row.status_label == "Running" %}{{ badge(row.status_label, "info") }} {% elif row.status_label == "Retrying" %}{{ badge(row.status_label, "warn") }} {% else %}{{ badge(row.status_label, "neutral") }}{% endif %} {% if can_retry %}
{% endif %}
{% endcall %} {{ operations_journey( source_url="/admin/sources/" ~ row.source_id if row.source_linkable else None, source_label=row.source_name or ("Source " ~ (row.source_id | string)[:8] ~ "…" if row.source_id else "Source unavailable"), document_url="/admin/documents/" ~ row.document_id if row.document_id else None, document_label=row.subject if row.document_id else "Document unavailable", job_url="/admin/jobs/" ~ row.job.id, job_label=row.operation_label, current="job" ) }} {% if notice %}

{{ notice }}

{% endif %} {% if row.status_label == "Failed" %} {% endif %}

Overview

{{ kv("Type", row.operation_label) }} {{ kv("Concerns", row.subject) }}
Source
{% if row.source_linkable %}{{ row.source_name }}{% elif row.source_id %}{{ row.source_name or (row.source_id | string)[:8] ~ "…" }}{% else %}—{% endif %}
Document
{% if row.document_id %}{{ row.subject }}{% else %}Not available yet{% endif %}
{{ kv("Queued", row.queued_at.strftime("%Y-%m-%d %H:%M:%S")) }} {{ kv("Started", row.started_at.strftime("%Y-%m-%d %H:%M:%S") if row.started_at else "Not started") }} {{ kv("Finished", row.finished_at.strftime("%Y-%m-%d %H:%M:%S") if row.finished_at else "—") }} {{ kv("Duration", ("%.1f s" | format(row.duration_seconds)) if row.duration_seconds is not none else "—") }} {{ kv("Attempts", row.job.attempt_count ~ " / " ~ row.job.max_attempts) }} {{ kv("Worker", row.job.leased_by) }} {{ kv("Trace", row.job.trace_id, mono=True) }}
Job ID
{{ identifier(row.job.id, "job-id", short=36) }}

Request

{% if safe_payload %}
{% for key, value in safe_payload.items() %}{{ kv(key.replace("_", " "), value, mono=(key in ("space_id", "source_id", "revision"))) }}{% endfor %}
{% else %}

No operational request fields.

{% endif %} {% if error_details %}

Error details

{% for key, value in error_details.items() %}{{ kv(key.replace("_", " "), value, mono=True) }}{% endfor %}
{% endif %}

Attempts

{% if not attempts %}

No attempt has been made yet.

{% else %}
{% for attempt in attempts %} {% endfor %}
Attempts of this job
# Worker Started Finished Outcome
{{ attempt.attempt_number }} {{ attempt.worker_id }} {{ attempt.leased_at.strftime("%Y-%m-%d %H:%M:%S") }} {{ attempt.finished_at.strftime("%Y-%m-%d %H:%M:%S") if attempt.finished_at else "—" }} {% if attempt.status == "succeeded" %}{{ badge("Succeeded", "ok") }} {% elif attempt.status in ("terminal", "expired") %}{{ badge(attempt.status | capitalize, "error") }} {% elif attempt.status == "retry_wait" %}{{ badge("Retry scheduled", "warn") }} {% else %}{{ badge(attempt.status | capitalize, "info") }}{% endif %} {% if attempt.error_code %}{{ attempt.error_code }}{% endif %}
{% endif %}
{% endblock %}