Commit bb8419e
Feat: Direct task + dag status updates (#3554)
* refactor: improve operation pool / tenant for controller logic
* refactor: remove some more loops
* feat: initial work on mq-based status updates
* feat: initial update query impl (will need to revise)
* fix: couple bugs
* fix: don't need to write into the temp table anymore
* refactor: attempt to do status updates inline
* fix: try to handle deadlocking
* chore: rm dead code
* feat: dag status updates directly
* fix: query changes, remove unneeded stuff
* fix: migration first pass
* fix: move migration
* chore: rm old idx from schema
* feat: remove status partitioning function + update call sites
* fix: add analyze
* fix: oops don't actually need analyze
* fix: timestamps, add link to note
* fix: had locking backwards all along 🤦
* fix: rm target partition check, since I don't think we need this anymore
* fix: improve / simplify locking more
* fix: is_dag_task
* fix: add requeueing logic, comment out some stuff for dev
* refactor: simplify more
* fix: copy paste bug
* fix: simplify more
* fix: compiler
* chore: gen
* fix: more copy paste
* fix: yet more copy paste
* fix: add where clause
* chore: remove debug prints
* refactor: simplify the dag status update query a bunch to be more in line with the task one
* chore: rm old comment
* chore: gen
* fix: merge issues
* chore: rm migrations, these are completed now
* fix: cleanup
* fix: return everything
* fix: simplify dag updates, use inner join, remove cte
* fix: initial work on reqeueing when dags aren't found
* fix: add some comments
* fix: rm struct we don't need
* refactor: initial work removing requeue logic
* fix: simplify more
* chore: add todo comments
* fix: move copyfrom to an overwrite for task writes
* fix: cast trick
* fix: wrong type
* fix: another type
* refactor: first pass remaining work
* feat: first pass at reconciliation
* chore: rm print lines
* refactor: rewrite consolidation query, add explicit locking
* chore: add comment
* fix: col ref
* fix: another col name
* fix: another
* fix: move where clause up, add ordering to avoid deadlocking
* fix: more aliases ugh
* refacto: use advisory locks, remove reconciliation logic
* fix: add back reconciliation logic
* fix: add notify back on update
* fix: update logic
* chore: gen
* chore: uncomment
* fix: bit of sql cleanup
* fix: gen
* fix: couple pr comments, I swear I had done this already....
* fix: copilot ordering issue
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* chore: gen
* fix: notify dag status updates
* fix: only send message for terminal statuses
* Revert "fix: only send message for terminal statuses"
This reverts commit 6a7737a.
* Revert "fix: notify dag status updates"
This reverts commit bafde7c.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 51b512e commit bb8419e
20 files changed
Lines changed: 1235 additions & 367 deletions
File tree
- internal
- operation
- queueutils
- services
- controllers
- olap
- retention
- partition
- pkg/repository
- sqlcv1
- sql/schema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
515 | 520 | | |
516 | 521 | | |
517 | 522 | | |
| |||
766 | 771 | | |
767 | 772 | | |
768 | 773 | | |
| 774 | + | |
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
| |||
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| 799 | + | |
793 | 800 | | |
794 | 801 | | |
795 | 802 | | |
| |||
913 | 920 | | |
914 | 921 | | |
915 | 922 | | |
916 | | - | |
| 923 | + | |
917 | 924 | | |
918 | 925 | | |
919 | 926 | | |
920 | 927 | | |
921 | 928 | | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
922 | 933 | | |
923 | 934 | | |
924 | 935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
| |||
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
| |||
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments