{% extends 'base.html' %} {% 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 }} Running

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

{% for task in running %} {{ task }}
Task started at {{ task.run_at|date:'Y-m-d H:i:s' }}
{% empty %} There are no running tasks. {% endfor %}

{{ errors|length }} Error{{ errors|length|pluralize }}

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.

{{ scheduled|length }} Scheduled

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 "run at" time.

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 %}