File: worker.html

package info (click to toggle)
dask.distributed 2022.12.1%2Bds.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,164 kB
  • sloc: python: 81,938; javascript: 1,549; makefile: 228; sh: 100
file content (67 lines) | stat: -rw-r--r-- 2,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends main.html %}
{% block content %}
{% set ws = workers[Worker] %}
{% set worker_list = [ws] %}
    <h1 class="title"> Worker: {{ ws.address }} </h1>
      {% include "worker-table.html" %}

    <div class="columns">
      <div class="column">
        <div class="content">
          <h2 class="subtitle"> In Memory </h2>
          <table class="table is-striped is-hoverable">
            <tr>
              <th> Task </th>
              <th> Bytes </th>
            </tr>
            {% for ts in ws.has_what %}
            <tr>
              <td> <a href="../task/{{ url_escape(ts.key) }}.html">{{ts.key}}</a></td>
              <td> {{format_bytes(ts.nbytes)}} </td>
            </tr>
            {% end %}
          </table>
        </div>
      </div>

      <div class="column">
        <div class="content">
          <h2 class="subtitle"> Processing </h2>
          <a class="button is-primary" href="../call-stacks/{{ url_escape(ws.address) }}.html">Call Stacks</a>
          <table class="table is-striped is-hoverable">
            <tr>
                <th> Task </th>
                <th> Priority </th>
            </tr>
            {% for ts in sorted(ws.processing, key=lambda ts: ts.priority) %}
            <tr>
                <td> <a href="../task/{{ url_escape(ts.key) }}.html">{{ts.key}}</a></td>
                <td> {{ts.priority }} </td>
            </tr>
            {% end %}
          </table>
        </div>
      </div>
    </div>

    {% if ws.resources %}
    <div class="content">
      <h2 class="subtitle"> Resources </h2>
      <table class="table is-striped is-hoverable">
        <tr>
            <th> Resource </th>
            <th> Consumed </th>
            <th> Total </th>
        </tr>

        {% for resource in ws.resources %}
        <tr>
            <td> {{ resource }} </td>
            <td> {{ ws.used_resources[resource] }} </td>
            <td> {{ ws.resources[resource] }} </td>
        </tr>
        {% end %}
      </table>
    </div>
    {% end %}
{% end %}