-
Notifications
You must be signed in to change notification settings - Fork 13
/
sequence.txt
70 lines (62 loc) · 1.91 KB
/
sequence.txt
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
# https://www.websequencediagrams.com
title Taskinator Sequence
User->+Web: Request process
Web-->+Process(seq): Create sequential process
Process(seq)-->-Web:
Web-->+Queue: Enqueue process
Queue-->-Web:
Web-->-User:
opt Sequential process
Queue->+Worker: Dequeue process
note right of Worker: Start sequential process
Worker->+Queue: Enqueue task
Queue-->-Worker:
Worker-->-Queue:
loop Sequential Tasks
Queue->+Worker: Dequeue task
note right of Worker: Start task
Worker->+Queue: Enqueue task
Queue-->-Worker:
Worker->Process(seq): Task completed
note left of Process(seq): All tasks complete?
Worker-->-Queue:
end
opt Sub Process Task
Queue->+Worker: Dequeue task
note right of Worker: Start task
Worker-->+Process(con): Create concurrent process
Process(con)-->-Worker:
Worker-->+Queue: Enqueue process
Queue-->-Worker:
Worker->Process(seq): Task completed
note left of Process(seq): All tasks complete?
Worker-->-Queue:
end
opt Concurrent process
Queue->+Worker: Dequeue process
note right of Worker: Start concurrent process
Worker->+Queue: Enqueue task
Queue-->-Worker:
Worker->+Queue: Enqueue task
Queue-->-Worker:
Worker->Process(seq): Task completed
note left of Process(seq): All tasks complete?
Worker-->-Queue:
opt Concurrent Tasks
Queue->+Worker: Dequeue task
Queue->+Worker: Dequeue task
Queue->+Worker: Dequeue task
Worker->Process(con): Task completed
note right of Process(con): All tasks complete?
Worker->Process(con): Task completed
note right of Process(con): All tasks complete?
Worker-->-Queue:
Worker-->-Queue:
Worker->Process(con): Task completed
Worker-->-Queue:
end
note right of Process(con): All tasks complete?
Process(con)->Process(seq): Process completed
note left of Process(seq): All tasks complete?
end
end