Commit 7fcbd48
committed
ttl: add checkpointing to TTL job
Introduce a progress tracker for TTL jobs that supports checkpointing.
Previously, if a TTL job restarted, it would reprocess spans that had
already been completed. With this change, completed spans are stored
in the job record so that restarts can skip over them, avoiding
duplicate work.
Fixes #140514
Epic: none
Release note (performance improvement): TTL jobs now checkpoint their
progress, allowing them to resume without reprocessing already
completed spans after a restart.1 parent 95e1d21 commit 7fcbd48
File tree
11 files changed
+1005
-37
lines changed- pkg
- jobs/jobspb
- sql
- spanutils
- ttl
- ttljob
- ttlschedule
11 files changed
+1005
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1321 | 1321 | | |
1322 | 1322 | | |
1323 | 1323 | | |
1324 | | - | |
1325 | | - | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1326 | 1328 | | |
1327 | 1329 | | |
1328 | 1330 | | |
| |||
1331 | 1333 | | |
1332 | 1334 | | |
1333 | 1335 | | |
1334 | | - | |
1335 | | - | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1336 | 1339 | | |
1337 | 1340 | | |
1338 | | - | |
1339 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1340 | 1348 | | |
1341 | 1349 | | |
1342 | 1350 | | |
| |||
1354 | 1362 | | |
1355 | 1363 | | |
1356 | 1364 | | |
1357 | | - | |
1358 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1359 | 1368 | | |
1360 | | - | |
1361 | | - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
1362 | 1372 | | |
1363 | 1373 | | |
1364 | 1374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments