Mercurial > hg > orthanc
annotate OrthancServer/Resources/ImplementationNotes/JobsEngineStates.dot @ 5765:247fc5368693 find-refactoring
un-sharing DatabaseConstraint and ISqlLookupFormatter with orthanc-databases
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Sep 2024 16:14:22 +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 } |