{% extends "base.html" %} {% block title %}Workers | nlght Admin{% endblock %} {% block content %}
Registered workers, their capabilities, and what they are holding right now.
{% if workers %}| Instance | Status | Load | Capabilities | Last heartbeat | Lease |
|---|---|---|---|---|---|
|
{{ worker.instance_name }}
{{ worker.worker_id }} |
{% if worker.expired %}
{# A worker that died without deregistering stays 'active' in its own
row until its lease runs out. Saying so is the point of this page:
the executions it held are only reclaimed once it expires. #}
lease expired
gone, not deregistered {% else %} {{ worker.status }} {% endif %} |
{{ worker.running }} / {{ worker.capacity }} | {% if worker.capabilities %}{{ worker.capabilities | join(', ') }}{% else %}any work{% endif %} | {{ worker.heartbeat_at.strftime('%H:%M:%S') }} | {{ worker.expires_at.strftime('%H:%M:%S') }} |
A worker with no capabilities claims any execution. One whose lease has expired still holds whatever it was running until another worker takes it over. This makes an expired lease worth looking at when nothing seems to be progressing.
{% else %}No worker has registered. Start one with nlght-ai worker; without it, submitted executions stay queued.