{% extends "base.html" %} {% block title %}Queue - whirr{% endblock %} {% block queue_badge %} {% set queued_count = jobs|selectattr('status', 'equalto', 'queued')|list|length %} {% if queued_count > 0 %} {{ queued_count }} {% endif %} {% endblock %} {% block content %}

Job Queue

{{ jobs|selectattr('status', 'equalto', 'running')|list|length }} running ยท {{ jobs|selectattr('status', 'equalto', 'queued')|list|length }} queued
{% if jobs %}
{% for job in jobs %} {% endfor %}
ID Name Status Command Worker Created
#{{ job.id }}
{{ job.name or '-' }}
{% if job.tags %}
{% for tag in job.tags|deserialize_json %} {{ tag }} {% endfor %}
{% endif %}
{% if job.status == 'running' %} running {% elif job.status == 'queued' %} queued {% endif %} {{ job.command_argv|deserialize_json|join(' ') if job.command_argv else '-' }} {{ job.worker_id or '-' }} {{ job.created_at|format_time_ago }} {% if job.status == 'queued' %}
{% elif job.status == 'running' %}
{% endif %}
{% else %}
No active jobs
Submit a job with whirr submit -- python train.py
{% endif %} {% endblock %}