Commit 82cf0bc
authored
refactor(backend): Clear out Notification Service code blockage (#9915)
Some of the code paths in the notification & scheduler service were
synchronous HTTP calls that execute a long-running job that blocks. This
makes the service threads busy waiting.
### Changes 🏗️
* Remove queue_notification API
* Remove DTO
* Move heavy tasks intothe executor
<!-- Concisely describe all of the changes made in this pull request:
-->
### Checklist 📋
#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
<!-- Put your test plan here: -->
- [x] Manually executing notification service jobs through the scheduler
API1 parent 089e7aa commit 82cf0bc
File tree
4 files changed
+160
-172
lines changed- autogpt_platform/backend/backend
- data
- executor
- notifications
4 files changed
+160
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
374 | 372 | | |
375 | 373 | | |
376 | 374 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 375 | | |
381 | 376 | | |
382 | 377 | | |
383 | 378 | | |
384 | 379 | | |
385 | 380 | | |
386 | | - | |
387 | | - | |
| 381 | + | |
| 382 | + | |
388 | 383 | | |
389 | 384 | | |
390 | | - | |
| 385 | + | |
391 | 386 | | |
392 | 387 | | |
393 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
194 | 193 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 194 | | |
202 | | - | |
203 | | - | |
204 | 195 | | |
205 | 196 | | |
206 | 197 | | |
207 | | - | |
208 | | - | |
209 | | - | |
| 198 | + | |
210 | 199 | | |
211 | | - | |
212 | 200 | | |
213 | 201 | | |
214 | 202 | | |
| |||
225 | 213 | | |
226 | 214 | | |
227 | 215 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 216 | + | |
231 | 217 | | |
232 | | - | |
233 | 218 | | |
234 | 219 | | |
235 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | 583 | | |
585 | 584 | | |
586 | 585 | | |
| |||
905 | 904 | | |
906 | 905 | | |
907 | 906 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
919 | 920 | | |
920 | 921 | | |
921 | | - | |
922 | | - | |
923 | 922 | | |
924 | 923 | | |
925 | 924 | | |
| |||
933 | 932 | | |
934 | 933 | | |
935 | 934 | | |
936 | | - | |
937 | | - | |
| 935 | + | |
| 936 | + | |
938 | 937 | | |
939 | 938 | | |
940 | 939 | | |
941 | 940 | | |
942 | 941 | | |
943 | 942 | | |
944 | 943 | | |
945 | | - | |
| 944 | + | |
946 | 945 | | |
947 | 946 | | |
948 | 947 | | |
| |||
1139 | 1138 | | |
1140 | 1139 | | |
1141 | 1140 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | 1141 | | |
1151 | 1142 | | |
1152 | 1143 | | |
| |||
0 commit comments