Skip to content

Commit

Permalink
Update README with additional workflow diagram details
Browse files Browse the repository at this point in the history
Expanded the workflow diagram in the README to include the interaction of adding and completing an additional task named Action4. The detailed explanation of this interaction was also added to enhance understanding of the task processing system.
  • Loading branch information
PiotrFerenc committed May 9, 2024
1 parent d2ce48e commit f009859
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ sequenceDiagram
q->>w3: Assign Action3 to Worker 3
w3->>q: Action3 Completed
q->>c: Notify Controller: Action3 Done
c->>q: Add new task: Action4
q->>w1: Assign Action3 to Worker 1
w1->>q: Action3 Completed
q->>c: Notify Controller: Action3 Done
```
The diagram shows the interactions between different participants in a task processing system. The API receives a request from a user and sends a response that the task has been added to the queue by the controller. Then, the controller adds a new task, labeled Action1, to the queue. The queue assigns this task to Worker 1, who, after completing it, informs the queue that it's done. The queue then notifies the controller that Action1 is complete. The process repeats for the next tasks, Action2 and Action3, which are assigned to Worker 2 and Worker 3, respectively. Each of these tasks is completed and reported as finished to the controller by the respective workers. Finally, Action4 is added to the queue, assigned again to Worker 1, who completes the task and reports its completion. The queue again informs the controller that the task is done.

## Installation
Linux:
Expand Down

0 comments on commit f009859

Please sign in to comment.