{% extends "base.html" %} {% block title %}Tasks - PyRunner{% endblock %} {% block content %}
Monitor and manage Django-Q2 tasks
Queued
{{ stats.queued_count }}
Running
{{ stats.running_count }}
Completed (24h)
{{ stats.completed_today }}
Failed (24h)
{{ stats.failed_today }}
{{ stuck_tasks|length }} Stuck Task(s) Detected
Tasks have been waiting longer than expected. Workers may not be running.
| Task ID | Type | Queued | Linked Resource | Actions |
|---|---|---|---|---|
| {{ task.id|truncatechars:24 }} | {% if task.type == 'script_run' %}Script Run{% else %}System{% endif %} | {{ task.queued_at|timesince }} ago | {% if task.linked_run %} {{ task.linked_run.script.name }} {% else %} - {% endif %} |
Showing {{ completed_tasks|length }} of {{ total_completed }} tasks
| Task Name | Type | Status | Duration | Started | Linked Resource |
|---|---|---|---|---|---|
| {{ task.name|truncatechars:30 }} | {% if task.type == 'script_run' %}Script Run{% else %}System{% endif %} | {% if task.success %} Success {% else %} Failed {% endif %} | {{ task.duration_display }} | {{ task.started|date:"M d, H:i" }} | {% if task.linked_run %} {{ task.linked_run.script.name }} {% else %} - {% endif %} |
{% if status_filter %} Try adjusting your filters or clear all filters. {% else %} No tasks have been executed yet. {% endif %}