File: worker-state-machine.svg

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 (127 lines) | stat: -rw-r--r-- 6,981 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 3.0.0 (20220315.2325)
 -->
<!-- Pages: 1 -->
<svg width="420pt" height="536pt"
 viewBox="0.00 0.00 420.00 535.91" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 531.91)">
<polygon fill="#ffffff" fill-opacity="0.941176" stroke="transparent" points="-4,4 -4,-531.91 416,-531.91 416,4 -4,4"/>
<g id="clust1" class="cluster">
<title>cluster_0</title>
<polygon fill="#ffffff" fill-opacity="0.941176" stroke="black" points="8,-290.95 8,-411.91 404,-411.91 404,-290.95 8,-290.95"/>
<text text-anchor="middle" x="206" y="-391.91" font-family="Times,serif" font-size="20.00">Worker</text>
</g>
<g id="clust2" class="cluster">
<title>cluster_1</title>
<polygon fill="#ffffff" fill-opacity="0.941176" stroke="black" points="8,-162 8,-282.95 404,-282.95 404,-162 8,-162"/>
<text text-anchor="middle" x="206" y="-262.95" font-family="Times,serif" font-size="20.00">BaseWorker</text>
</g>
<g id="clust3" class="cluster">
<title>cluster_2</title>
<polygon fill="#ffffff" fill-opacity="0.941176" stroke="black" points="50,-8 50,-90 252,-90 252,-8 50,-8"/>
<text text-anchor="middle" x="151" y="-70" font-family="Times,serif" font-size="20.00">WorkerState</text>
</g>
<!-- Scheduler -->
<g id="node1" class="node">
<title>Scheduler</title>
<polygon fill="none" stroke="black" points="263,-527.91 143,-527.91 143,-491.91 263,-491.91 263,-527.91"/>
<text text-anchor="middle" x="203" y="-504.91" font-family="Times,serif" font-size="20.00">Scheduler</text>
</g>
<!-- stimuli -->
<g id="node2" class="node">
<title>stimuli</title>
<polygon fill="grey" stroke="grey" points="282,-455.91 124,-455.91 124,-419.91 282,-419.91 282,-455.91"/>
<text text-anchor="middle" x="203" y="-434.21" font-family="Times,serif" font-size="14.00">StateMachineEvent</text>
</g>
<!-- Scheduler&#45;&gt;stimuli -->
<g id="edge1" class="edge">
<title>Scheduler&#45;&gt;stimuli</title>
<path fill="none" stroke="black" d="M203,-491.6C203,-483.89 203,-474.62 203,-466.02"/>
<polygon fill="black" stroke="black" points="206.5,-466.01 203,-456.01 199.5,-466.01 206.5,-466.01"/>
</g>
<!-- Worker_handle_stimulus -->
<g id="node4" class="node">
<title>Worker_handle_stimulus</title>
<ellipse fill="none" stroke="black" cx="303" cy="-336.43" rx="92.88" ry="18"/>
<text text-anchor="middle" x="303" y="-332.73" font-family="Times,serif" font-size="14.00">handle_stimulus()</text>
</g>
<!-- stimuli&#45;&gt;Worker_handle_stimulus -->
<g id="edge2" class="edge">
<title>stimuli&#45;&gt;Worker_handle_stimulus</title>
<path fill="none" stroke="black" d="M220.42,-419.58C236.58,-403.51 260.78,-379.43 278.81,-361.5"/>
<polygon fill="black" stroke="black" points="281.49,-363.76 286.11,-354.23 276.56,-358.8 281.49,-363.76"/>
</g>
<!-- Worker_execute -->
<g id="node5" class="node">
<title>Worker_execute</title>
<ellipse fill="none" stroke="black" cx="104" cy="-336.43" rx="88.28" ry="37.45"/>
<text text-anchor="middle" x="104" y="-347.73" font-family="Times,serif" font-size="14.00">execute()</text>
<text text-anchor="middle" x="104" y="-332.73" font-family="Times,serif" font-size="14.00">gather_dep()</text>
<text text-anchor="middle" x="104" y="-317.73" font-family="Times,serif" font-size="14.00">batched_send()</text>
</g>
<!-- stimuli&#45;&gt;Worker_execute -->
<g id="edge5" class="edge">
<title>stimuli&#45;&gt;Worker_execute</title>
<path fill="none" stroke="black" d="M178.52,-412.31C166.25,-399.98 151.21,-384.86 137.85,-371.45"/>
<polygon fill="black" stroke="black" points="176.22,-414.96 185.76,-419.58 181.18,-410.02 176.22,-414.96"/>
</g>
<!-- instructions -->
<g id="node3" class="node">
<title>instructions</title>
<polygon fill="grey" stroke="grey" points="191,-134 63,-134 63,-98 191,-98 191,-134"/>
<text text-anchor="middle" x="127" y="-112.3" font-family="Times,serif" font-size="14.00">list[Instruction]</text>
</g>
<!-- WorkerState_handle_stimulus -->
<g id="node8" class="node">
<title>WorkerState_handle_stimulus</title>
<ellipse fill="none" stroke="black" cx="151" cy="-34" rx="92.88" ry="18"/>
<text text-anchor="middle" x="151" y="-30.3" font-family="Times,serif" font-size="14.00">handle_stimulus()</text>
</g>
<!-- instructions&#45;&gt;WorkerState_handle_stimulus -->
<g id="edge8" class="edge">
<title>instructions&#45;&gt;WorkerState_handle_stimulus</title>
<path fill="none" stroke="black" d="M135.16,-87.79C138.72,-75.95 142.77,-62.44 145.88,-52.05"/>
<polygon fill="black" stroke="black" points="131.73,-87.06 132.21,-97.64 138.43,-89.07 131.73,-87.06"/>
</g>
<!-- BaseWorker_handle_stimulus -->
<g id="node6" class="node">
<title>BaseWorker_handle_stimulus</title>
<ellipse fill="none" stroke="black" cx="303" cy="-207.48" rx="92.88" ry="18"/>
<text text-anchor="middle" x="303" y="-203.78" font-family="Times,serif" font-size="14.00">handle_stimulus()</text>
</g>
<!-- Worker_handle_stimulus&#45;&gt;BaseWorker_handle_stimulus -->
<g id="edge3" class="edge">
<title>Worker_handle_stimulus&#45;&gt;BaseWorker_handle_stimulus</title>
<path fill="none" stroke="black" d="M303,-318.31C303,-297.2 303,-261.06 303,-236.03"/>
<polygon fill="black" stroke="black" points="306.5,-235.73 303,-225.73 299.5,-235.73 306.5,-235.73"/>
</g>
<!-- BaseWorker_execute -->
<g id="node7" class="node">
<title>BaseWorker_execute</title>
<ellipse fill="none" stroke="black" cx="104" cy="-207.48" rx="88.28" ry="37.45"/>
<text text-anchor="middle" x="104" y="-218.78" font-family="Times,serif" font-size="14.00">execute()</text>
<text text-anchor="middle" x="104" y="-203.78" font-family="Times,serif" font-size="14.00">gather_dep()</text>
<text text-anchor="middle" x="104" y="-188.78" font-family="Times,serif" font-size="14.00">batched_send()</text>
</g>
<!-- Worker_execute&#45;&gt;BaseWorker_execute -->
<g id="edge6" class="edge">
<title>Worker_execute&#45;&gt;BaseWorker_execute</title>
<path fill="none" stroke="black" d="M104,-288.53C104,-274.2 104,-258.66 104,-245.11"/>
<polygon fill="black" stroke="black" points="100.5,-288.71 104,-298.71 107.5,-288.71 100.5,-288.71"/>
</g>
<!-- BaseWorker_handle_stimulus&#45;&gt;WorkerState_handle_stimulus -->
<g id="edge4" class="edge">
<title>BaseWorker_handle_stimulus&#45;&gt;WorkerState_handle_stimulus</title>
<path fill="none" stroke="black" d="M287.87,-189.41C260.9,-158.98 204.4,-95.25 173.09,-59.92"/>
<polygon fill="black" stroke="black" points="175.32,-57.16 166.07,-52 170.08,-61.8 175.32,-57.16"/>
</g>
<!-- BaseWorker_execute&#45;&gt;instructions -->
<g id="edge7" class="edge">
<title>BaseWorker_execute&#45;&gt;instructions</title>
<path fill="none" stroke="black" d="M115.85,-160.4C118.24,-151.06 120.62,-141.8 122.57,-134.25"/>
<polygon fill="black" stroke="black" points="112.45,-159.53 113.35,-170.08 119.23,-161.27 112.45,-159.53"/>
</g>
</g>
</svg>