Mercurial > hg > orthanc
annotate OrthancServer/Resources/ImplementationNotes/JobsEngineStates.dot @ 5104:ea3224848d05
merge
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 27 Oct 2022 12:57:29 +0200 |
parents | d25f4c0fa160 |
children |
rev | line source |
---|---|
2558 | 1 // dot -Tpdf JobsEngineStates.dot -o JobsEngineStates.pdf |
2 | |
3 digraph G | |
4 { | |
5 rankdir="LR"; | |
6 init [shape=point]; | |
7 failure, success [shape=doublecircle]; | |
8 | |
9 // Internal transitions | |
10 init -> pending; | |
11 pending -> running; | |
12 running -> success; | |
13 running -> failure; | |
14 running -> retry; | |
15 retry -> pending [label="timeout"]; | |
16 | |
17 // External actions | |
18 failure -> pending [label="Resubmit()" fontcolor="red"]; | |
19 paused -> pending [label="Resume()" fontcolor="red"]; | |
20 pending -> paused [label="Pause()" fontcolor="red"]; | |
21 retry -> paused [label="Pause()" fontcolor="red"]; | |
22 running -> paused [label="Pause()" fontcolor="red"]; | |
2581
8da2cffc2378
JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2559
diff
changeset
|
23 |
8da2cffc2378
JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2559
diff
changeset
|
24 paused -> failure [label="Cancel()" fontcolor="red"]; |
8da2cffc2378
JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2559
diff
changeset
|
25 pending -> failure [label="Cancel()" fontcolor="red"]; |
8da2cffc2378
JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2559
diff
changeset
|
26 retry -> failure [label="Cancel()" fontcolor="red"]; |
8da2cffc2378
JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2559
diff
changeset
|
27 running -> failure [label="Cancel()" fontcolor="red"]; |
2559 | 28 } |