{% extends 'layouts/base.html' %} {% set active_menu = 'jobqueue' %} {% set page_title = 'Job Queue' %} {% block body_header %} {% if queue_state == JobQueueState.COMPLETED %}

Global Job Queue - Completed Tasks

{% else %}

Global Job Queue

{% endif %} {% endblock %} {% block body %}
{% if jobs_total == 0 %}

There are no pending jobs!

{% else %} {% for j in jobs %} {% if j.status == JobStatus.SCHEDULED %} {% set item_style = 'has-background-info-light' %} {% elif j.status == JobStatus.RUNNING %} {% set item_style = 'has-background-success-light' %} {% elif j.status == JobStatus.DEPWAIT %} {% set item_style = 'has-background-warning-light' %} {% elif j.status == JobStatus.STARVING %} {% set item_style = 'has-background-danger-light' %} {% elif j.status == JobStatus.DONE %} {% if j.result in (JobResult.SUCCESS, JobResult.SUCCESS_PENDING) %} {% set item_style = 'has-background-success-light' %} {% else %} {% set item_style = 'has-background-danger-light' %} {% endif %} {% endif %}
{{title_for_job(session, j)}}  {{j.architecture}}  {{humanized_timediff(j.time_created)}}
{% endfor %} {% endif %}
{% if queue_state != JobQueueState.COMPLETED %} {% else %} {% endif %}
{% endblock %}