{% extends "base.html" %} {% block title %}Jobs | GTI Fiscal{% endblock %} {% block content %}

EXECUÇÕES

Jobs

Acompanhe execuções ativas e investigue falhas sem perder o histórico.

{% for value,label in [("PENDING","Pendentes"),("RUNNING","Executando"),("COMPLETED","Concluídos"),("FAILED","Falhos")] %}{{ label }}{{ status_counts[value] }}Ver jobs →{% endfor %}
{% if job_id_filter %}{% endif %} {% if status_filter or search or kind_filter or job_id_filter or scope_filter=="all" %}Limpar filtros{% endif %}
{% if status_filter or job_id_filter or scope_filter=="all" %}

Filtros ativos: {% if scope_filter=="all" %}Histórico e inativos{% endif %}{% if status_filter %}Status: {{ {"PENDING":"Pendente","RUNNING":"Executando","COMPLETED":"Concluído","FAILED":"Falhou"}[status_filter] }}{% endif %}{% if job_id_filter %}Job #{{ job_id_filter }}{% endif %}

{% endif %}
{% if job_id_filter and result["items"] %}{% set selected = result["items"][0] %}

Job #{{ selected.job_id }}

Voltar à lista

{{ selected.client or "Cliente não identificado" }} · {{ selected.display_name or "Instalação" }} · {{ selected.hostname or "Servidor não informado" }}

{{ selected.kind_label }} {{ selected.status_label }}

Erro completo

{{ selected.error or "Sem erro registrado" }}
Tipo técnico: {{ selected.kind }} · Status técnico: {{ selected.status }}
{% endif %}
{% for item in result["items"] %}{% else %}{% endfor %}
Execuções recentes · {{ result.total }} resultados
Cliente / servidorTipo / jobStatusCriadoFinalizado / duraçãoErro / ação
{{ item.client or "Cliente não identificado" }}{{ item.display_name or "Instalação" }} · {{ item.hostname or "Servidor não informado" }}{{ item.kind_label }}Job #{{ item.job_id }}{{ item.status_label }}{{ item.created_display }}{{ item.finished_display }}{{ item.duration }}{{ (item.error or "")[:100] }}{% if item.error and item.error|length > 100 %}…{% endif %}Ver detalhes
Nenhum job encontrado. Consultar histórico
{% endblock %}