{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{{ resource.name }} - Pychestrate Resources{% endblock %} {% block content %}
Resource details and allocation status
| ID | {{ resource.id }} |
|---|---|
| Name | {{ resource.name }} |
| Type | {{ resource.resource_type }} |
| Pool | {{ resource.pool_name | display }} |
| Description | {{ resource.description or '—' }} |
| Health Status | {% set status = resource.health_status %} {% if status == 'online' %} Online {% elif status == 'offline' %} Offline {% elif status == 'degraded' %} Degraded {% elif status == 'maintenance' %} Maintenance {% else %} {{ status | capitalize }} {% endif %} |
| Capacity | {{ resource.current_allocations }}/{{ resource.capacity }} allocated |
| Tags | {% for tag in resource.tags %} {{ tag }} {% else %} No tags {% endfor %} |
| Created | {{ resource.created_at | local_datetime(true, '—') }} |
| Updated | {{ resource.updated_at | local_datetime(true, '—') }} |
{{ resource.metadata | tojson(indent=2) }}
| ID | User | Job ID | Mode | Check Out Time | Expected Check In | Actions |
|---|---|---|---|---|---|---|
| {{ alloc.id }} | {{ alloc.username or '—' }} | {{ alloc.job_id or '—' }} | {{ ui.status_badge(alloc.mode) }} | {{ alloc.checkout_time | local_datetime(true, '—') }} | {{ alloc.expected_checkin | local_datetime(true, '—') }} | {% if alloc.user_id|string == current_user_id|string %} {% elif can_manage %} Force check in… {% endif %} |
No active allocations
{% endif %}| ID | User | Job ID | Mode | Start Time | End Time |
|---|---|---|---|---|---|
| {{ res.id }} | {{ res.username or '—' }} | {{ res.job_id or '—' }} | {{ res.mode | state_words }} | {{ res.start_time | local_datetime(false, '—') }} | {{ res.end_time | local_datetime(false, '—') }} |
No upcoming reservations
{% endif %}Reserved by {{ next_reservation_by_other.username or 'someone else' }} from {{ next_reservation_by_other.start_time | local_datetime(false, '—') }} to {{ next_reservation_by_other.end_time | local_datetime(false, '—') }}. Check it out with a timeout that ends before then; a request that runs into a reservation is refused.
{% endif %}You have this checked out, since {{ my_allocation.checkout_time | local_datetime(false, '—') }}{% if my_allocation.expected_checkin %}, until {{ my_allocation.expected_checkin | local_datetime(false, '—') }}{% endif %}. Open your allocation to check it in.
{% if resource.current_allocations > 1 %}{{ resource.current_allocations - 1 }} other allocation{{ 's' if resource.current_allocations != 2 else '' }} {{ 'are' if resource.current_allocations != 2 else 'is' }} also active.
{% endif %}At capacity: held by {% for allocation in active_allocations %}{{ allocation.username or 'someone' }}{% if allocation.expected_checkin %} (until {{ allocation.expected_checkin | local_datetime(false, '—') }}){% endif %}{% if not loop.last %}, {% endif %}{% endfor %}. Checking out becomes available when an allocation is checked in.
Checking out is blocked: this resource is {% if status == 'maintenance' %}in maintenance{% else %}{{ status }}{% endif %}{% if blocking_transition %} since {{ blocking_transition.timestamp | local_datetime(false, '—') }}{% if blocking_transition.username %} (set by {{ blocking_transition.username }}){% endif %}{% endif %}. {% if blocking_transition and blocking_transition.reason %}Reason: {{ blocking_transition.reason }}.{% endif %} {% if can_manage %}Change its status under Health to allow checking out again.{% else %}Ask a lab manager to bring it back online.{% endif %}