{% extends 'base.html' %} {% block content %}

Worker state : {{ worker_state.state }}

Current tasks


{% if not tasks %} {% endif %}
{% for task in tasks %}
{% if task.type == "TaskType.IMAGE" %} {% set img_path = task.content.img.split('/')[-1] %} Image could not be loaded {% endif %} {% if task.type == "TaskType.CUT" %} Image could not be loaded {% endif %}
{% if task.type == "TaskType.TEXT" %}

ID : {{ task.content.txt }}

{% endif %}

ID : {{ task.task_id }}

{% endfor %}

Completed tasks


{% if not completed_tasks %} {% endif %} {% for task in completed_tasks %} {%if completed_tasks[task].status == "failed" %} {% else %} {% endif %} {% endfor %} {% endblock %}