Commit 818f722
authored
Provide descriptive names for asyncio.Task (#5727)
Reflex internally spawns async tasks for background event processing, emitting
websocket data, lifespan, telementry, and resolving async computed vars. Now
these tasks all have descriptive names that include the event being processed,
the token, and a timestamp of when the task started. This extra information in
the task name allows users to better identify where potentially problems in the
app are hiding.1 parent bc99f35 commit 818f722
File tree
5 files changed
+32
-10
lines changed- reflex
- app_mixins
- istate
- utils
5 files changed
+32
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
1582 | 1583 | | |
1583 | 1584 | | |
1584 | 1585 | | |
1585 | | - | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
1586 | 1590 | | |
1587 | 1591 | | |
1588 | 1592 | | |
| |||
1727 | 1731 | | |
1728 | 1732 | | |
1729 | 1733 | | |
1730 | | - | |
| 1734 | + | |
| 1735 | + | |
1731 | 1736 | | |
1732 | 1737 | | |
1733 | 1738 | | |
| |||
2028 | 2033 | | |
2029 | 2034 | | |
2030 | 2035 | | |
2031 | | - | |
| 2036 | + | |
| 2037 | + | |
2032 | 2038 | | |
2033 | 2039 | | |
2034 | 2040 | | |
| |||
2047 | 2053 | | |
2048 | 2054 | | |
2049 | 2055 | | |
2050 | | - | |
| 2056 | + | |
| 2057 | + | |
2051 | 2058 | | |
2052 | 2059 | | |
2053 | 2060 | | |
2054 | 2061 | | |
2055 | | - | |
| 2062 | + | |
| 2063 | + | |
2056 | 2064 | | |
2057 | 2065 | | |
2058 | 2066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | | - | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
| 671 | + | |
671 | 672 | | |
672 | 673 | | |
673 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
| |||
0 commit comments