{% extends "base.html" %} {% block title %}Cluster Tokens - VidAI{% endblock %} {% block head %} {% endblock %} {% block content %}

Cluster Tokens

Manage authentication tokens for worker processes in the cluster.

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Create New Token

{% for token in worker_tokens %} {% endfor %}
Name Token Status Created Last Used Actions
{{ token.get('name') }} {{ token.get('token')[:20] }}... {{ 'Active' if token.get('active') else 'Inactive' }} {{ token.get('created_at', 'N/A')[:19] if token.get('created_at') else 'N/A' }} {{ token.get('last_used', 'Never')[:19] if token.get('last_used') else 'Never' }} {% if token.get('active') %}
{% else %}
{% endif %}
{% if not worker_tokens %}

No cluster tokens found. Generate your first token above.

{% endif %}
{% endblock %}