Skip to content

Commit 0604037

Browse files
authored
chore: update notifier readme (#421)
* chore: update notifier readme * chore: typo * chore(notifier): add pic to readme * chore(notifer): rm redundant * chore: reorder * chore: rm redundant
1 parent 6a92ed7 commit 0604037

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/assets/Hawk.png

168 KB
Loading

workers/notifier/README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Handles new events from Grouper Worker, holds it and sends to sender worlers
44

5+
This repository is a part of the Hawk ecosystemm. You can register [here](https://garage.hawk.so/login)
6+
7+
![alt text](../../.github/assets/Hawk.png)
8+
9+
510
## How to run
611

712
1. Make sure you are in Workers root directory
@@ -12,21 +17,12 @@ Handles new events from Grouper Worker, holds it and sends to sender worlers
1217
## Events handling scheme
1318

1419
```
15-
1) On task received
1620
-> receive task
1721
-> get project notification rules
1822
-> filter rules
19-
-> check channel timer
20-
a) if timer doesn't exist
21-
-> send tasks to sender workers
22-
-> set timeout for minPeriod
23-
b) if timer exists
24-
-> push event to channel's buffer
25-
26-
2) On timeout
27-
-> get events from channel's buffer
28-
-> flush channel's buffer
29-
-> send tasks to sender workers
23+
-> update eventsCount in redis
24+
-> get updated eventCount
25+
-> send notification if eventCount == treshold
3026
```
3127

3228
### Event example

0 commit comments

Comments
 (0)