File: computation.html.j2

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 (42 lines) | stat: -rw-r--r-- 1,258 bytes parent folder | download
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
<strong>Computation</strong> {{ id }}

<table>
    <tr>
        <td style="text-align: left;"><strong>Duration: </strong>{{ '%0.3f' | format(stop - start) }}</td>
        <td style="text-align: left;"></td>
    </tr>
    <tr>
        <td style="text-align: left;"><strong>Start: </strong>{{ start }}</td>
        <td style="text-align: left;"></td>
    </tr>
    <tr>
        <td style="text-align: left;"><strong>Groups: </strong>{{ groups | length }}</td>
        <td style="text-align: left;"></td>
    </tr>
    <tr>
        <td style="text-align: left;"><strong>Tasks: </strong>
        {% for k, v in states.items() if v %}
            {{ k }}: {{ v }}
            {{ ", " if not loop.last else "" }}
        {% endfor %}
        </td>
        <td style="text-align: left;"></td>
    </tr>
</table>

<details>
<summary style="margin-bottom": 20px><h4 style="display:inline">Code</h4></summary>
{% for segment in code %}
<h5>Code segment {{ loop.index }} / {{ code | length }}</h5>
<pre><code>{{ segment }}</code></pre>
{% endfor %}
</details>

<details>
<summary style="margin-bottom": 20px><h4 style="display:inline">Task Groups</h4></summary>
<ul>
{% for gr in groups %}
    <li> {{ gr.__repr__() | html_escape }} </li>
{% endfor %}
</ul>
</details>