Newer
Older
This section presents
- the different stages happening during a worker execution:
- the initialization
- the execution
- the conception of a worker
- the architecture
- additional configuration steps
- element processing
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
The following graph describes what happens when running the worker, either on Arkindex or locally. Words in italic font are actual method calls in the worker.
```mermaid
flowchart LR
subgraph all[Worker execution]
direction LR
subgraph id1[Worker initialization]
init
end
run -.-> configure
subgraph id2[Inference]
direction TB
configure --> list_elements
list_elements --> element_processing
subgraph id3[Loop over each element]
element_processing --> element_processing
end
end
init --> run
end
classDef pyMeth font-style:italic
class init,run,configure,list_elements pyMeth
```
More details about the `element_processing` step.
```mermaid
flowchart LR
subgraph all[Element processing]
direction LR
subgraph id1[Element details retrieval]
retrieve_element
end
retrieve_element --> update_activity_started
subgraph id2[Processing]
direction LR
update_activity_started[update_activity] --> process_element -- No errors --> update_activity_processed
update_activity_started -- to Started --> update_activity_started
update_activity_processed[update_activity] -- to Processed --> update_activity_processed
update_activity_error[update_activity] -- to Error --> update_activity_error
end
process_element -- Errors found --> update_activity_error
end
classDef pyMeth font-style:italic
class process_element,update_activity_started,update_activity_error,update_activity_processed pyMeth
```