{# Shared WorkItem table cells (data explorer + compute dashboard) -- expects `entry` #} {# Column order: ID | Name | Status | Elapsed | Worker #} {% foreign_key_link entry "id" truncate_chars=10 %} {{ entry.name|default:"-" }} {# only set by views that load errors (e.g. the compute dashboard) #} {% if entry.error_message %}
{{ entry.error_message }}
{% endif %} {% if entry.status == "Pending" %} {% status_bar "Pending" "secondary" %} {% elif entry.status == "Running" %} {% status_bar "Running" "primary" %} {% elif entry.status == "Cancelled" %} {% status_bar "Cancelled" "warning" %} {% elif entry.status == "Failed" %} {% status_bar "Failed" "danger" %} {% elif entry.status == "Interrupted" %} {% status_bar "Interrupted" "warning" %} {% elif entry.status == "Completed" %} {% status_bar "Completed" "success" %} {% endif %} {% if entry.status == "Running" %} {{ entry.updated_at|timesince }} {% elif entry.status == "Pending" %} queued {{ entry.created_at|timesince }} {% else %} {{ entry.created_at|timesince:entry.updated_at }} {% endif %} {% if entry.worker and entry.worker.computer_system %} {% foreign_key_link entry.worker "computer_system" %} {% elif entry.worker %} {% foreign_key_link entry.worker %} {% else %} - {% endif %}