Skip to content

Commit

Permalink
Include warning on the queue_detail if there's no agents for that queue
Browse files Browse the repository at this point in the history
  • Loading branch information
plars committed Dec 13, 2024
1 parent ee2e75a commit 65a3f2d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions server/src/templates/queue_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ <h2 class="p-heading--4">Agents</h2>
</tr>
</thead>
<tbody>
{% if agents %}
{% for agent in agents %}
<tr class="tr-highlight">
<td class="has-overflow">
Expand All @@ -75,12 +76,19 @@ <h2 class="p-heading--4">Agents</h2>
{{ agent.provision_streak_count }}
{% endif %}
</td>
<td><a href="/agents/{{ agent.name }}">{{ agent.name }}</a></td>
<td>{{ agent.name }}</td>
<td>{{ agent.state }}</td>
<td>{{ agent.updated_at.strftime('%Y-%m-%d %H:%M:%S') }}</td>
<td><a href="/jobs/{{ agent.job_id }}">{{ agent.job_id }}</a></td>
<td>{{ agent.job_id }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="5" class="u-align--center">
No agents detected that serve this queue. Please check the spelling of the queue name.
</td>
</tr>
{% endif %}
</tbody>
</table>

Expand Down

0 comments on commit 65a3f2d

Please sign in to comment.