{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% extends "layout.html" %} {% block title %} {{ _("Job queue") }} {% endblock %} {% block navbar %} {% endblock %} {% block content %}

{{ _("Job queue") }}

{{ _("This page shows a snapshot of the job queue.") | safe }}

{{ _("Running jobs") }}

{%if jobs_running is not none and jobs_running|length > 0 %} {% for (job_id, is_current_client_job, agent_name, info, launcher, started_at, max_time) in jobs_running %} {% endfor %}
{{_("Type")}} {{_("Agent name")}} {{_("Name")}} {{_("Launcher name")}} {{_("Started at")}} {{_("Timeout at")}} {{_("Action")}}
Task {{agent_name}} {{info}} {{launcher}} {{from_timestamp(started_at).strftime("%d/%m/%Y %H:%M:%S")}} {% if max_time >= 0 %} {{from_timestamp(started_at+max_time).strftime("%d/%m/%Y %H:%M:%S")}} {% else %} {{_("No timeout set")}} {% endif %} {% if user_manager.user_is_superadmin() %} {% endif %}
{% else %}

{{ _("There are no jobs running") }}

{% endif %}

{{ _("Jobs in queue") }}

{% if jobs_waiting is not none and jobs_waiting|length > 0 %} {% for (job_id, is_current_client_job, info, launcher, max_time) in jobs_waiting %} {% endfor %}
{{_("Type")}} {{_("Name")}} {{_("Launcher name")}} {{_("Maximum runtime in seconds")}} {{_("Action")}}
Task {{info}} {{launcher}} {% if max_time >= 0 %} {{max_time}} {% else %} {{_("No timeout set")}} {% endif %} {% if user_manager.user_is_superadmin() %} {% endif %}
{% else %}

{{_("There are no jobs waiting in queue")}}

{% endif %} {% endblock %}