{% extends 'base.html' %}{% load humanize %}{% load filters %} {% block headtitle %}Tasks{% endblock %} {% block content %}

Tasks

Tasks are the background work that TubeSync undertakes to index and download media. This page allows you to see basic overview of what is running and what is scheduled to perform in the future as well as check up on any errors that might have occured.

{% include 'infobox.html' with message=message %}

{{ running|length|intcomma }} Running

Running tasks are tasks which currently being worked on right now.

{% for task in running %} {{ task }}
Task started at {{ task.start_at|date:'Y-m-d H:i:s' }}
{% empty %} There are no running tasks. {% if wait_for_database_queue %} No tasks are running because another task has requested a pause of the queue.
While the database tasks are still running, additional tasks will remain scheduled.
{% endif %} {% endfor %}

{{ total_errors|intcomma }} Total Error{{ total_errors|pluralize }} ({{ errors|length|intcomma }} on this page)

Tasks which generated an error are shown here. Tasks are retried a couple of times, so if there was an intermittent error such as a download got interrupted it will be scheduled to run again.

{% for task in errors %} {% empty %} There are no tasks with errors on this page. {% endfor %}
{% with adjusted=total_scheduled|sub:total_errors %}

{{ adjusted|intcomma }} Scheduled ({{ scheduled|length|intcomma }} on this page)

{% endwith %}

Tasks which are scheduled to run in the future or are waiting in a queue to be processed. They can be waiting for an available worker to run immediately, or run in the future at the specified "scheduled at" time.

{% include 'pagination.html' with filter=source.pk %}

Completed

A record of recently completed tasks is kept for a few days. You can use the button below to view recent tasks which have completed successfully.

View Completed tasks

Reset

If you need to, you can reset and reschedule all tasks using the button below.

Reset tasks
{% endblock %}